http到https包括www 301redirect
我目前有我们的Magento网站redirecthttp到https。 基本上只能通过https访问网站,包括www。 我认为这是工作,但是,它目前显示为302redirect,我想把它做成301.有人可以让我知道如何得到这个工作? 我使用.htaccess尝试了一些不同的东西,但没有运气。 事实上,当301redirect在我们现有的redirect工程的.htaccess文件中,而是直接进入主页时,这是我的主要问题。 # Redirect all "not correct" domain to www with https # (is not important if comes with or without https): RewriteCond %{HTTP_HOST} !^www.gloveclub.co.uk$ [NC] RewriteRule ^(.*)$ https://www.gloveclub.co.uk/$1 [L,R=301] # Redirect all non-ssl to ssl. RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://www.gloveclub.co.uk/$1 [R,L] 我原来的.htaccess文件内容如下; ############################################ ## uncomment these lines for CGI mode […]