开发者

rewrite htaccess url some questions

开发者 https://www.devze.com 2023-01-15 10:09 出处:网络
I have a CMS that is generating SEFURLs almost correctly. However, there is a menu i开发者_开发技巧tem called separator that you can use as a hook for Javascript, which has no link on it.

I have a CMS that is generating SEFURLs almost correctly.

However, there is a menu i开发者_开发技巧tem called separator that you can use as a hook for Javascript, which has no link on it.

The URL that gets created is:

http://www.mysite.com/separator/mycategory/mypage

I want to get rid of the /separator so that the URL looks like:

http://www.mysite.com/mycategory/mypage

Is this possible to do in the .htaccess? I tried a few rewrite rules and they don't work.


RedirectMatch Permanent ^/separator(.*) $1
0

精彩评论

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