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

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.

1 answer


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!

Submit an Answer