HTACCESS: How to REDIRECT ALL urls contains “a wor

2019-08-06 01:36发布

Lets say we have the urls (which contains "vvvvv") inside. For example:

All those above (containing "vvvvv" word inside) will be going to:

How to make it in .htaccess please?

2条回答
聊天终结者
2楼-- · 2019-08-06 02:13
RewriteRule vvvvv http://www.google.com? [L,R=301]

That should do it I think. The ? at the end of the destination URL means "don't send any query string".

查看更多
三岁会撩人
3楼-- · 2019-08-06 02:26

This rule works. I've tried it with a different rule. Not sure if the ? will work, but if you use a direct URL as the final destination URL, it will function properly.

查看更多
登录 后发表回答