How to cancel permanent RedirectMatch ?

Context: Debian Apache 2 I have made a permanent redirection in sites-available I should have made a temporary one. Removing this redirect from the configuration file maintains the redirection. How can I stop it ?

Kind regards

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.


What you would need to do is:

  • Remove the redirect rules from your Apache config
  • Run a config test with the following command:
apachectl -t
  • If you get Syntax OK message, restart Apache so that the changes could take effect:
systemctl restart apache2
  • Then clear the cache of your browser and test the site again

You could also test that using the curl command, it would look something like this:

curl -IL

Hope that this helps! Regards, Bobby