我有一个网址如下:
http://website.com/browse/wedding-service-providers/bridal-wear-and-accessories/
我想删除
/browse/wedding-service-providers
每次从网址以便生成的网址为
http://website.com/bridal-wear-and-accessories/
感谢您的帮助:)
答案 0 :(得分:0)
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