Mod_rewrite

Discussion in 'Apache' started by enQuira, Nov 23, 2006.

  1. #1
    Hi guys,
    I need to make few changes in my .htaccess file but I am lost in all the mod_rewrite examples. please help!
    What I need is the following:
    1: redirect all traffic coming to ./files ===> ./
    2. I have the following rule:
    RewriteRule ^(.*)?/?files/(.*) wp-content/blogs.php?file=$2 [L]
    It works fine but I have a gallery where the images are stored in a subfolder called files as well: ./gallery/files/ and isthen affected by the above rule. How can I restrict it to all but gallery/files/....

    Thanks a lot!
     
    enQuira, Nov 23, 2006 IP