Welcome Guest, Not a member yet? Register   Sign In
Moved from local to remote host - Routing Problems
#6

(This post was last modified: 07-26-2015, 09:15 AM by skunkbad.)

This is what I've been using:


Code:
RewriteEngine On
RewriteBase /
RewriteRule ^(system|application|cgi-bin) - [F,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT,L]

I've also needed slight variations at times:


Code:
RewriteEngine On
RewriteBase /
RewriteRule ^(system|application|cgi-bin) - [F,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# NORMAL SERVER ( COMMENT OUT IF GODADDY OR OPTION #3 )
RewriteRule .* index.php/$0 [PT,L]

# SPECIAL GODADDY LINE ( UNCOMMENT IF GODADDY )
#RewriteRule ^(.*)$ /index.php?/$1 [L]

# IF NOTHING ELSE WORKS UNCOMMENT THIS ONE
#RewriteRule ^ index.php [QSA,L]

If you're not using symbolic links, you can safely remove +FollowSymLinks.
Reply


Messages In This Thread
RE: Moved from local to remote host - Routing Problems - by skunkbad - 07-26-2015, 09:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB