1.下面的代码是伪静态文件。htaccess由WordPress自动生成。
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
2.将以下代码粘贴复制到#END WordPress并保存。这时,当我们访问我们的WordPress站点时,我们被迫跳转到https小绿旗锁定状态。
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]