Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Rewrite help

Status
Not open for further replies.

discostu9

Technical User
Nov 9, 2002
1
US
Hi, I'm trying to redirect a php search string to a url that doesn't use &'s and ?'s. For instance, i want

/backgrounds/nokia/day/1/2/category.html to be redirected to

/backgrounds/category.php?phone=nokia&order=day&id=1&page=2

my rewrite rule is:

RewriteRule ^/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/category.html$ /$1/category.php?phone=$2\&order=$3\&id=$4\&page=$5 [PT]

I can't seem to get this to work. Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top