Welcome Guest, Not a member yet? Register   Sign In
.htaccess index.php rewrite not working on user directory
#5

(02-06-2015, 09:02 AM)CroNiX Wrote: This line is redundant:


Code:
RewriteCond $1 !^(index\.php|(.*)\.swf|forums|images|css|downloads|jquery|js|robots\.txt|favico​​n\.ico)

As these two lines cover it, and all other real files/directories. They basically say "if the request is not for a REAL file, and the request is not for a REAL directory, pass the request to index.php. Presumably everything from the above line is a real file or directory, so it's not needed at all.


Code:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

ohh, I didn't know this, thanks for the observation.
Reply


Messages In This Thread
RE: .htaccess index.php rewrite not working on user directory - by carloscarcamo - 02-06-2015, 09:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB