CI 3 - Not working on prod server - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Installation & Setup (https://forum.codeigniter.com/forumdisplay.php?fid=9) +--- Thread: CI 3 - Not working on prod server (/showthread.php?tid=62868) |
CI 3 - Not working on prod server - bazianm - 09-03-2015 Hi, I have been developing a web app using XAMPP on a windows computer. Everything works fine. I just set it up on the web server (ubuntu 14.04). When I go to the main URL, everything works OK. When I try to go to an page, I get a 404 error. I have a .htaccess file (remember, it works in development). I checked and my controller file has an uppercase first letter. The method definitely exists because it works in production. I enabled mod_rewrite for the .htaccess and have confirmed that it is running with Webmin ("rewrite" is checked and marked as enabled). Here's my .htaccess with comments removed: Code: <IfModule mod_rewrite.c> Any ideas? No idea why I am getting a 404 error... RE: CI 3 - Not working on prod server - mwhitney - 09-03-2015 Does the server allow use of .htaccess files (via the AllowOverride setting)? If you have access to the server's config files, have you tried putting your mod_rewrite commands there? Is your <IfModule> section inside a <Directory> section? (If not, you probably need to remove RewriteBase and you may need to change the -f and -d lines to %{DOCUMENT_ROOT}%{REQUEST_FILENAME} ) |