CI crashes only on home page - 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 crashes only on home page (/showthread.php?tid=69482) |
CI crashes only on home page - Kaosweaver - 12-01-2017 So, had the site fully operational on a subdomain on the server (beta.site.com) Moved the beta to the public_html folder (renaming folders and all) The site's pages work just fine: http://www.stoneworkbygarethjordan.com/millhouse_engraving/font_list_art Index page will work: http://www.stoneworkbygarethjordan.com/index.php But without the index.php, it won't: http://www.stoneworkbygarethjordan.com/ So, first made sure I had the right php (I do) http://www.stoneworkbygarethjordan.com/phpinfo.php Checked the config.php file to make sure the data is correct: PHP Code: $config['base_url'] = 'http://www.stoneworkbygarethjordan.com/'; Then tried a zillion different htaccess changes from the default. PHP Code: RewriteEngine On PHP Code: <IfModule mod_rewrite.c> I also changed the uri_protocol in config to everything listed (and AUTO because nothing else was working) I'm on bluehost, I'm at a loss as to why this worked on the very same server under the beta subdomain (without needing the index.php for the home page) and I move it and now it blows up. What (stupidly obvious) thing am I missing? (just for completeness, I reset the beta folder and uploaded the files for the home page - which you can see here - http://beta.stoneworkbygarethjordan.com/ - same htaccess, config, server, etc - works) RE: CI crashes only on home page - Kaosweaver - 12-01-2017 I changed the htaccess to: PHP Code: RewriteEngine On And that made it work, no idea if that's a good solution, but its working, if someone has a better idea, I'd love to hear it. RE: CI crashes only on home page - InsiteFX - 12-02-2017 If you move the CodeIgniter folder names around then you need to specify them in the index.php file. RE: CI crashes only on home page - Kaosweaver - 12-04-2017 (12-02-2017, 04:44 AM)InsiteFX Wrote: If you move the CodeIgniter folder names around then you need to specify them in the index.php file. I moved the entire site from a subdomain to the main domain (it went live...) I didn't change anything about the location of the folders for CI, just where CI was sitting. RE: CI crashes only on home page - jreklund - 12-04-2017 On one hosting provider I needed to do it like this. You can remove the RewriteCond $1 !^(index\.php|images|resources|vendors|robots\.txt) rule if you want. Code: DirectoryIndex index.php For some reason it didn't like QSA. Like I normally do it. The example above got an extra ? after index.php. Code: <IfModule mod_rewrite.c> |