开发者

.htaccess redirect after replace a word

I need to use .htaccess file to replace a world in URL

something like this:

example URL: www.hotourism.com/banknotes/banknotes/asia/vietnam/

redirect t开发者_开发知识库o: www.hotourism.com/countries-banknotes/banknotes/asia/vietnam/

how can I use mod_rewrite to redirect every URL containt "/banknotes/banknotes/" to the same URL after replacing that word?


Would something like this work?

RewriteRule /countries-(.*) $1
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜