mod rewrite and .htaccess

thermal

Newbie
Joined
Sep 24, 2008
Messages
14
Reaction score
9
Looking for rewrite help in htaccess from this
/ipod/?product=itouch
to this
/ipod/itouch.html
is this possible
Thanks in advance for any help
 

cyklotrial

Regular Member
Joined
Oct 13, 2008
Messages
248
Reaction score
82
Age
33
RewriteEngine On
RewriteRule ^/ipod/([a-zA-Z]+).html$ /ipod/?product=$1 [L]
 

asep_sidhi

Newbie
Joined
Jan 15, 2009
Messages
1
Reaction score
0
how about if i want to change :

/index.php?category=book#category2=lifestyle#status=promo

into :

/book/lifestyle/promo.html



Thanks :)
 

zone69

Junior Member
Joined
Nov 24, 2008
Messages
196
Reaction score
1,299
how about if i want to change :

/index.php?category=book#category2=lifestyle#status=promo

into :

/book/lifestyle/promo.html



Thanks :)

Try this:
Code:
RewriteEngine On
RewriteRule ^([a-zA-Z]+)/([a-zA-Z]+)/([a-zA-Z]+).html$ /index.php?category=$1&category2=$2&status=$3 [NC,L]

Hope that helps!
 

nyxxo

Registered Member
Joined
Jan 16, 2009
Messages
61
Reaction score
9
the beauty of php thanks for the help i had a similar question to this
 
Top