我在我的服务器上安装了SSL,效果很好。假设我有10个html/php页面。将我的网站迁移到HTTPS
此处,我很困惑,对SEO什么是最好的:
在我的.htaccess文件,我在做一个网站宽(所有10页)301重定向:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^(?:www\.)? (.*)$ [NC]
RewriteRule (.*) https://%1%{REQUEST_URI} [L,R=301]
或者我应该重定向各10页的:
第1页:
RewriteCond %{SERVER_PORT} !^443$
RewriteCond %{HTTPS} !on
RewriteCond %{REQUEST_URI} ^/page1.php$ [NC]
RewriteRule ^(.*)$ https://www.example.com/page1.php/$1 [L,R=301]
第2页:
RewriteCond %{SERVER_PORT} !^443$
RewriteCond %{HTTPS} !on
RewriteCond %{REQUEST_URI} ^/page2.php$ [NC]
RewriteRule ^(.*)$ https://www.example.com/page2.php/$1 [L,R=301]
与SEO相关的问题可能更适合http://webmasters.stackexchange.com/ –