开发者

I'd like to remove a constant from a URL with htaccess

开发者 https://www.devze.com 2023-02-06 08:36 出处:网络
I have a site with URL\'s like this: http://website.com/browse/wedding-service-providers/bridal-wear-and-accessories/

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

精彩评论

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