Closed ghost closed 5 years ago
The problem with that is now I have to have more notes for people to change things, and it only works for a single domain. That is to say, you'd have to add it to every VirtualHost.
The rule that it currently uses will work for every single VirtualHost, be it one or hundreds. Since it does 301's and not 302's, it should not be overly intensive on the web server.
That said, if you can find a way that doesn't use mod_rewrite
and works for every domain, I'd be happy to switch.
Good day,
Thanks for your great tool !
According to this page mod_rewrite should not be used for simple redirection:
https://httpd.apache.org/docs/2.4/rewrite/avoid.html
One of the following can be used instead:
Redirect 301 "/" "https://www.example.com/"
Redirect permanent "/" "https://www.example.com/"