ssl安装后网页重定向到index.php

时间:2019-03-21 11:14:37

标签: ssl redirect

我已经在所有网站上安装了ssl证书。这是一个漫长而忙碌的过程,涉及重定向和所有这些内容。 网站//domain.com/about.html仍出现在Google搜索中,尚未重定向到https版本。我想可能要花一些时间。但是,单击时将网站//domain.com/about.html重定向到//domain.com/index.php,所有其他URL都重定向到/index.php。可能是什么问题?以下是.htaccess文件的代码。

# BEGIN WordPress

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteBase /

RewriteRule ^index\.php$ - [L]

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . /index.php [L]

</IfModule>

# END WordPress


RewriteCond %{SERVER_PORT} 80 

RewriteRule ^(.*)$ https://domainn.com/$1 [R=301,L]

0 个答案:

没有答案