I have a domain example.com. I want users to be redirected to https://www.example.com
whenever one of the following is typed:
http://example.com
http://www.example.com
https://example.com
I also need to redirect people accessing /asdf
(or /asdf/
) to /index.php?folder=asdf
.
I found some examples of code doing the first part, but there was always a debate about their effectiveness.
Edit: (need some more help! :))