wordpress - How do I ignore .htaccess on subdomain? -
i force https unless using subdomain: foo.domain.com. when open subdomain in browser's incognito mode, works. https isn't added. when open subdomain on browser in normal mode, error says: "your connection not private". can see url on browser reads: https://foo.domain.com. clearing browser's cache doesn't seem fix it.
rewritebase / rewritecond %{https} off rewritecond %{http_host} !^foo\. [nc] rewriterule (.*) https://%{http_host}%{request_uri} [r=301,l] rewriterule ^index\.php$ - [l] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule . /index.php [l] thanks!
this sounds caching problem, or add-on such https everywhere being mean. if works in private browsing or incognito mode, works in normal mode well. if behaviour of private browsing/incognito mode differs normal mode, means still cached in normal mode or have add-on enabled in normal mode not have enabled in private mode. found 301 redirects surprisingly persistent, persisting after deleting thought history of site.
testing site seems work fine me. recommend not using 301 redirects until works expected. when works expected, can turn 302 (temporary) redirects permanent ones see fit.
the following 2 questions other stackexchange site may helpful: https://superuser.com/questions/304589/how-can-i-make-chrome-stop-caching-redirects , https://superuser.com/questions/467999/clear-301-redirect-cache-in-firefox.
Comments
Post a Comment