Results 1 to 2 of 2

Thread: mod_rewrite issue

  1. #1
    Join Date
    May 2008

    mod_rewrite issue


    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

    it failed

    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.


  2. #2
    Join Date
    May 2008
    no ideas ???

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center