htaccess RewriteRule和Redirect 301不能正常工作

时间:2015-10-27 15:03:52

标签: apache .htaccess mod-rewrite redirect url-rewriting

我们正在尝试设置301重定向,以确保Google使用正确的类别页面。我们无法设置规范和正常的Redirect 301 /n.html https://website.com/n.html也无法正常工作,它只会被忽略。我们在Opencart 1.5.5.1上。问题是301s被忽略了,它们根本没有实现Redirect 301和RewriteRule

# SEO URL Settings
RewriteEngine On

RewriteRule ^/refrigeration/Multidecks/fresh-meat-multidecks$ https://www.website.co.uk/Multidecks/fresh-meat-multidecks [R=301,L]
RewriteRule ^/fresh-meat-multidecks$ https://www.website.co.uk/Multidecks/fresh-meat-multidecks/ [R=301,L]

1 个答案:

答案 0 :(得分:0)

像Anubhava所说,问题是/之后的^