1

I've used an .htaccess file to redirect a website to another domain. Now I need to remove the redirect, I've deleted the .htaccess file, but requests to the site are still redirecting. I've restarted Apache but no luck. Are .htaccess file contents cached, or is there anything I'm missing here?

.htaccess contents were as follows:

Redirect 301 / http://www.example.com/

Thanks

1
  • To answser the topic (not the question): No, .htaccess files are not cached by Apache. Every request causes a reparse, unfortunately. – Kontrollfreak Sep 27 '14 at 11:56
1

Solved the problem by uploading an empty .htaccess file. Still interested to know why simply deleting it didn't work though..

1
  • 4
    The redirect was probably cached by your web browser or by an intermediate proxy, but definitely not by Apache httpd. – joschi Jul 1 '10 at 14:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.