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? Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.