0
這裏我的htaccess重定向不能正常工作,htaccess的無視我的IP
RewriteEngine On
RewriteBase/
# Rewrite non-www to www
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Rewrite HTTP to HTTPS:
RewriteCond %{HTTP:X-Forwarded-Proto} =http
RewriteRule^https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Rewrite to comingsoon
RewriteCond %{REMOTE_ADDR} !=91.75.39.77
RewriteCond %{REQUEST_URI} !/comingsoon\.html$ [NC]
RewriteCond %{REQUEST_URI} !\.(jpe?g?|png|gif|css|js) [NC]
RewriteRule .* /comingsoon.html [R=302,L]
與正確的IP訪問者會忽略和重定向。 代碼有什麼問題,有人注意到了什麼?
在此先感謝。