为什么“http://example.com/post”和“https://example.com/post”直接指向不同的页面?怎么修呢?我想重定向http tp https wordpress页面。这是我的.htaccess代码
<IfModule Litespeed>
SetEnv noabort 1
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{ENV:HTTPS} !=on
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /post/index.php [L]
RewriteEngine on
RewriteCond %{SERVER_NAME} =www.yourdomain.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanen
</IfModule>
发布于 2020-10-28 09:04:25
除非您已经更改了Apache的配置,否则站点没有任何问题,而且由于缓存,您所面临的问题是本地问题。
缓存可以存储在浏览器或Wifi路由器上,也可以存储在Internet本地服务提供商中。
对于将来的情况,我建议在TorBrowser上测试你不会有缓存问题的网站,
https://stackoverflow.com/questions/64567804
复制相似问题