www.webdeveloper.com
Results 1 to 2 of 2

Thread: mod_rewrite issue

Hybrid View

  1. #1
    Join Date
    May 2008
    Posts
    31

    mod_rewrite issue

    Hi

    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.


    cheers
    /Marcin

  2. #2
    Join Date
    May 2008
    Posts
    31
    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



Recent Articles