[英]Please help me redirect old url to new url using htaccess
I have some old urls from our old site as follows: 我有一些旧网址来自我们的旧网站,如下所示:
http://www.example.com/archives/2006/08/test.html http://www.example.com/archives/2006/08/test.html
I want all my urls as shown above, starting with www.example.com/archives/* to point to www.example.com/gossip 我希望我的所有网址都从www.example.com/archives/*开头,指向www.example.com/gossip
Can anyone please give me the right htaccess code to do the same? 任何人都可以给我正确的htaccess代码以执行相同的操作吗? Thanks a lot!
非常感谢!
Kip 基普
This will do what I think you're asking for: 这将满足我的要求:
RewriteEngine On
RewriteRule ^/archives/.*$ /gossip [R,L]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.