0
我需要一些htaccess 301重定向的帮助。帮助301重定向
我想从这个规则使重定向:
RewriteRule ^author-details/([^/]+)-([^/]+).html$ /authors-details.php?id=$1&slug=$2 [QSA,L]
这一规则:提前
RewriteRule ^([^/]+)-biography-([^/]+).html$ /authors-details.php?id=$1&slug=$2 [QSA,L]
感谢。
由于裂缝,但有一个小问题。上面的代码重定向到http://your.host/450-stephenie-biography-meyer.html,这是不正确的。正确的URL是http://your.host/450-biography-stephenie-meyer.html – Psyche
尝试更新的代码并确保它是您正在测试的新代码 - 浏览器缓存301重定向。 – Crack
现在工作。谢谢。 – Psyche