1

I want it so all http or https requests go to https:// mydomain.com using the same page.

So even https:// mydomain.net/donate/ and http:// mydomain.net/donate/ would go to https:// mydomain.com/donate/

Any help? Thanks in advance!

1 Answer 1

0

Can't believe that I forgot how to do this with htaccess :p

RewriteEngine On
RewriteCond %{HTTPS} !^on$
RewriteRule (.*) https://newdomain/$1 [R,L]

That's it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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