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

October 30, 2016 123 views
PHP

my modrewrite looks like this
<IfModule mod
rewrite.c>
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]
</IfModule>

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.