开发者

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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜