I have an issue with mod_rewrite
here you have examples.
I am trying to add this rule:
RewriteRule !\.(js|ico|gif|jpg|png|css|htc|swf)$ dispatcher.php
As above it works fine, but I would like to have it in the vhost.conf rewriting only for specific subfolders
I have tried
RewriteRule ^/subfolder/!\.(js|ico|gif|jpg|png|css|htc|swf)$ /subfolder/dispatcher.php
I have only one working but not as I wanted.
RewriteRule ^/subfolder/(.*)$ /subfolder/dispatcher.php
above works fine but all files are routed to dispatcher. I would like to have all files except (js|ico|gif|jpg|png|css|htc|swf) routed to dispatcher. please help.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)