Is there a way to prevent mod rewrite from breaking down images , script and links

October 30, 2016 537 views

my modrewrite looks like this
<IfModule mod
RewriteEngine On

RewriteCond %{REQUESTFILENAME} !-d
RewriteCond $1 !^(index.php|css|images|robots.txt)
RewriteCond %{REQUEST
FILENAME}.php -f
RewriteRule ^(.*)$ $1.php

RewriteRule ^profile/([A-Za-z0-9-]+) profile.php?u=$1[NC]

1 comment
  • mod_rewrite is very flexible and there isn't much it can't handle. Can you clarify what you mean by "breaking down images , script and links"?

Be the first one to answer this question.