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?

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.