I have built a new Trongate site (not my first) and It all works like a charm on my local server. However I have just put the site online and the url puts up a 404 with an error message saying that a 'Trongate_pages' page (which I have not intended to use) has not been published. Here is the url: https://www.amyhelenbell.com/.
I have communicated with the service provider who says it is a Trongate issue.
The default controller is Pages and the default method is index so if I add pages to the url, the home page and all the other pages work perfectly. Here is the index method:
I want the default behaviour to be that the basic url opens with the home page and that is exactly what happens with the local server. How can I fix this?
Hey guys - I really need some help on this. Can someone please respond with some advice? https://www.amyhelenbell.com/pages will show you my site but remove the word 'pages' and you get a default 'trongate_pages' page. I have tried custom routing like ''=>'pages' but all to no avail.
Sorry about all the ASCII codes but this forum doesn't seem to like quote marks.
Default behaviour putting site online
2 years ago
2 years ago
#1
2 years ago
#2
The first thing to do is change the credentials for your tg-admin page.
I was able to log in with admin/admin. And with any bad luck, your database is using root with no password, so check that as well.
Secondly, what webserver are you using locally, and what webserver are you using in production? IIS, Apache, Nginx?
I was able to log in with admin/admin. And with any bad luck, your database is using root with no password, so check that as well.
Secondly, what webserver are you using locally, and what webserver are you using in production? IIS, Apache, Nginx?
2 years ago
#3
This was just a tryout with no security implications. And the database was indeed protected anyway - the Host sets that up automatically. What I wanted was some advice on why my site was routed automatically to the trongate_pages blank homepage when I don't want to use trongate_pages.
Having received no advice, I have abandoned Trongate for the time being, re-coded the site to Codeigniter 3, uploaded and that is working perfectly!
I noticed incidentally that the default 'welcome page' is using trongate_pages and so despite my changing the default controller there was still some anomaly sending me back to trongate_pages - but only for the online site. Apache server for both local and remote.
It's a pity that this forum doesn't send me an email when there is a response. Also a pity that any edit turns single quotes to ASCII codes.
Having received no advice, I have abandoned Trongate for the time being, re-coded the site to Codeigniter 3, uploaded and that is working perfectly!
I noticed incidentally that the default 'welcome page' is using trongate_pages and so despite my changing the default controller there was still some anomaly sending me back to trongate_pages - but only for the online site. Apache server for both local and remote.
It's a pity that this forum doesn't send me an email when there is a response. Also a pity that any edit turns single quotes to ASCII codes.
2 years ago
#4
TL;DR: mod_rewrite?
Half of my post was cut off, but I think the problem was caused by your production not having mod_rewrite.c turned on.
Or your BASE_URL was somehow different, but that seems unlikely.
Your website looks good now. Happy you managed to get it done with CI.
I'm not a Trongate developer, but I'm still curious why it didn't work with Trongate.
I assume you used the Desktop Installer. I created a new app called "perkin" and going to http://localhost/perkin/ showed the "It Totally Works" homepage. My BASE_URL is defined as http://localhost/perkin/. I created a new page (with "Pages") called "Blog". After publishing it, I was able to access http://localhost/perkin/blog.
I changed perkin\templates\views\public.php to add the link to Blog to the menu.
Half of my post was cut off, but I think the problem was caused by your production not having mod_rewrite.c turned on.
Or your BASE_URL was somehow different, but that seems unlikely.
Your website looks good now. Happy you managed to get it done with CI.
I'm not a Trongate developer, but I'm still curious why it didn't work with Trongate.
I assume you used the Desktop Installer. I created a new app called "perkin" and going to http://localhost/perkin/ showed the "It Totally Works" homepage. My BASE_URL is defined as http://localhost/perkin/. I created a new page (with "Pages") called "Blog". After publishing it, I was able to access http://localhost/perkin/blog.
I changed perkin\templates\views\public.php to add the link to Blog to the menu.