.htaccess 重定向动态网址



旧网址:1. http://www.example.com/hotel-list/something

网址:2. http://www.example.com/something/hotel-list "酒店列表"实际上是酒店列表.php Google 搜索中的旧网址给出 404。我们如何正确重定向?

提前非常感谢。

尝试:

RedirectMatch 301 ^/hotel-list/(.*)$ /$1/hotel-list

RewriteRule ^hotel-list/(.*)$ /$1/hotel-list [L,R=301]

最新更新