How would I get
to do a redirect to
This question came from our site for professional and enthusiast programmers.
Assuming you are using Apache Web Server, add this to your .htaccess file:
Then restart apache. Good luck!
Assuming you are using Apache and have mod_rewrite you could add the following to your .htaccess file
This redirects you to https only if you are not using https. If you want this to only apply to certain domains then use: