Jump to content

Archived

This topic is now archived and is closed to further replies.

sploit

mod rewrite

Recommended Posts

hi,

 

i have a url like:

mysite.com/show.php?catid=1&catname=clothing

 

can i rewrite it as

mysite.com/clothing/

?

 

 

Share this post


Link to post
Share on other sites

RewriteEngine On

RewriteRule ^([a-z]+)/$ show.php?catid=1&catname=$1

 

Should do it, but it might not work do to you having cat with 2 variables, better to put id/name in an array as

 

'1 => Clothing'

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.