• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CI crashes only on home page

#5
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, 08:32 AM
RE: CI crashes only on home page - by Kaosweaver - 12-01-2017, 08:46 AM
RE: CI crashes only on home page - by InsiteFX - 12-02-2017, 05:44 AM
RE: CI crashes only on home page - by Kaosweaver - 12-04-2017, 06:57 AM
RE: CI crashes only on home page - by jreklund - 12-04-2017, 11:24 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2018 MyBB Group.