1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

htaccess rewrite exception help

Discussion in 'BlackHat Lounge' started by milligan, Jun 3, 2009.

Thread Status:
Not open for further replies.
  1. milligan

    milligan Junior Member

    Joined:
    Mar 19, 2007
    Messages:
    170
    Likes Received:
    63
    I was hoping someone who knows what they are doing could help me with my htaccess issue.

    My htaccess has some rewrite rules that do whatever they do to everything coming to my domain.

    I want to have an exception for 1 image file which is kept like this:
    domain.com/1/2/image.gif

    It seems that the htaccess that controls this all for me is in the sub-dir 1.

    Sorry I can't be more specific so as to protect the innocent :)

    I have tried:
    RewriteCond %{REQUEST_URI} !^/1/2/ and
    RewriteCond %{REQUEST_URI} !^/1/2/ image.gif in both the root htaccess and the htaccess in the sub-dir 1 without success.

    I have no idea.

    Any tips would be great. Cheers all.
     
  2. milligan

    milligan Junior Member

    Joined:
    Mar 19, 2007
    Messages:
    170
    Likes Received:
    63
    Maybe my post is too long. So:
    Can someone show me how to make an exception in htaccess so that it doesn't rewrite the following:
    http://www.mydomain.com/files/ABC/mypecs.gif.

    I want people to see my pecs :rolleyes: but every other link coming in needs to be rewitten (and is being handled just fine). I just want the above link to go to the place it refers to.

    Thanks
     
  3. milligan

    milligan Junior Member

    Joined:
    Mar 19, 2007
    Messages:
    170
    Likes Received:
    63
    Thanks to the overwhleming support and help given guys. :rolleyes: I found a solution and stumbled on a method that made me $1,239,001 last night.

    J/K I changed tack and tried something different which worked.

    Now I'm off to talk to myself offline.
     
Thread Status:
Not open for further replies.