Jump to content

Redirect everything except a particular folder name


Gafaddict

Recommended Posts

I'm building a photo album script and am coming across a problem here.

 

I want to redirect users to a certain album based on the criteria they give me:

RewriteRule ^([^/\.]+)/([^/\.]+)/([^/\.]+)/([^/\.]+)/? picture.php?year=$1&season=$2&meet=$3&picture=$4

 

The problem is that the actual "images" folder I'm storing the pictures is also susceptible to this rule.

 

I tried replacing the above code with this, as the first level is a numerical value (a year):

RewriteRule ^([1-9+)/([^/\.]+)/([^/\.]+)/([^/\.]+)/? picture.php?year=$1&season=$2&meet=$3&picture=$4

 

But that just causes the redirect to fail completely.

 

Is there any way to exclude only the "images" folder from this rule?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.