I'd like to remove a constant from a URL with htaccess
I have a site with URL's like this:
http://website.com/browse/wedding-service-providers/bridal-wear-and-accessories/
I'd like to remove
/browse/wedding-service-providers
from the url each time so that the resulting URL is
http://website.com/brid开发者_JAVA百科al-wear-and-accessories/
Thanks for your help :)
RewriteEngine On
RewriteBase /
RewriteRule ^(.*)-c-(.*)$ index\.php?main_page=index&cPath=$2&%{QUERY_STRING} [L]
Then url like
http://website.com/bridal-wear-and-accessories-c-3/
in this url 3 is the id of category
精彩评论