Forum Moderators: phranque
in .htaccess file i use this method
RewriteEngine on
RewriteRule ^cat_sell(.*).html$ cat_sell.php?cid=$1
but its is not working please check and give me solution
I am waiting your quick responce
mianriz
[edited by: ergophobe at 10:07 pm (utc) on June 26, 2005]
[edit reason] URL exemplified as per Usage Agreement and forum charter [/edit]
Welcome to WebmasterWorld!
You must first change the URLs on your pages from unfriendly to friendly -- This can be done either by changing the database or by using (for example) preg_replace on php pages. Once a visitor or search engine "clicks on" a friendly link, a friendly URL request is sent to your server. You then use mod_rewrite to change the friendly URL back into the "unfriendly" form needed to invoke your database access script (cat_sell.php). Your .htaccess code above appears to be almost correct, so all you need to do now is to fix the URLs on your pages.
RewriteRule ^cat_sell([^.]+)\.html$ /cat_sell.php?cid=$1 [L]