Gafaddict Posted July 1, 2008 Share Posted July 1, 2008 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 https://forums.phpfreaks.com/topic/112705-redirect-everything-except-a-particular-folder-name/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.