Welcome Guest, Not a member yet? Register   Sign In
CI crashes only on home page
#5

(This post was last modified: 12-04-2017, 10:26 AM by jreklund.)

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
<IfModule mod_rewrite.c>
   RewriteEngine on
   RewriteCond $1 !^(index\.php|images|resources|vendors|robots\.txt)
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>

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>
   RewriteEngine on
   RewriteCond $1 !^(index\.php|resources|vendor|robots\.txt)
   RewriteCond %{REQUEST_FILENAME} !-f
   RewriteCond %{REQUEST_FILENAME} !-d
   RewriteRule ^(.*)$ index.php/$1 [L,QSA]
</IfModule>
Reply


Messages In This Thread
CI crashes only on home page - by Kaosweaver - 12-01-2017, 07:32 AM
RE: CI crashes only on home page - by Kaosweaver - 12-01-2017, 07:46 AM
RE: CI crashes only on home page - by InsiteFX - 12-02-2017, 04:44 AM
RE: CI crashes only on home page - by Kaosweaver - 12-04-2017, 05:57 AM
RE: CI crashes only on home page - by jreklund - 12-04-2017, 10:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB