0
我們的網站有問題,如果我寫https://example.com它會轉到另一個網站,因爲我們與其他網域的IP位於同一IP。我如何將其重定向到我的http://域? 這裏是我的htacess:wordpress htaccess重寫規則https到http
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase/
RewriteCond %{ENV:HTTPS} =on
RewriteRule ^.*$ http://%{SERVER_NAME}%{REQUEST_URI} [R,L]
# BEGIN WordPress
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
RewriteCond %{HTTPS} ^on$
RewriteRule ^(.*)$ http://example.com/$1 [NC,L,R]
謝謝!!
thanx爲快速回答,但現在它轉到https:// – user3647543
對不起,我已經更新了答案。現在試試。 –
謝謝Nerijus,它提供了太多的重定向,但我認爲這是主機問題,(一些隱藏的htaccess)。非常感謝您的幫助! – user3647543