htaccess Elite

.htaccess tutorial


All times are UTC [ DST ]





Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: simple rewrite giving me a headache
PostPosted: 04 Aug 2008 14:41 
Offline

Joined: 04 Aug 2008 14:37
Posts: 2
Hello,

I have a simple rewrite headache.... Here is my line:

RewriteRule ^img/photos/(.+)/thumbs/(.+)$ index.php?display=photo&view=$2&album=$1&viewmode=image&type=thumb

I try to load this URL:

http://www.mysite.com/img/photos/my-album-2008/thumbs/IMG_6575.jpg

and in my index.php i do a:

echo $_GET["album"]

and it outputs:

my-album-2008/thumbs

I am expecting it to output:

my-album-2008


arrrgh! any suggestions?


Top
 Profile  
 
 Post subject: Re: simple rewrite giving me a headache
PostPosted: 04 Aug 2008 14:54 
Offline

Joined: 04 Aug 2008 14:37
Posts: 2
actually delete this i am a n00b and it wasnt following my rewrite rule - URL was being caught by a previous rewrite and behaming oddly... fixed now :D


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 13 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Powered by phpBB