0

My htaccess:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

My goal was redirecting all http-requests to https - it works. Now I removed the htaccess-file because I need to test something without https. Calling http://www.domain.com redirects again to https://www.domain.com.

Why? The htaccess-file was removed. I think the problem is the browser, but those settings were not saved in a cookie or something, were they?

Thx!

3
  • Test in a different browser or clear your browser cache.
    – anubhava
    Jul 5, 2014 at 17:07
  • It´s working correctly in other browsers. But my question is why? A htaccess file isnt downloaded the the client. So after deleting the htaccess at the server, the https redirection should not work anymore. Jul 5, 2014 at 19:57
  • 2
    As @anubhava said, clear your cache. You had a permanent redirect R=301 which the browser cached, it is not even bothering to ask for the http version, it is requesting the https version directly. Nothing to do with htaccess
    – zx81
    Jul 5, 2014 at 23:01

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.