How would I get
to do a redirect to
migrated from stackoverflow.com Mar 16 '11 at 13:40
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: