Darksquire
asked on
How to redirect a web request to the right address
Our company hosts a secure pay site, let's say with the following address
https://www.justanexample.com
If that address is specifically typed into the address bar, or clicked after a google search, the site loads as intended. However, if you go into the browser address bar and just type www.justanexample.com or justanexample.com, the browser attempts to load the http address, NOT the https and errors out. Where do I need to change settings so that even if the https is not specified, it will attempt to load the secure site, and not the standard http site? Is there some type of setting affecting the redirect within the web server itself, or does the problem lie elsewhere? All help will be greatly appreciated.
https://www.justanexample.com
If that address is specifically typed into the address bar, or clicked after a google search, the site loads as intended. However, if you go into the browser address bar and just type www.justanexample.com or justanexample.com, the browser attempts to load the http address, NOT the https and errors out. Where do I need to change settings so that even if the https is not specified, it will attempt to load the secure site, and not the standard http site? Is there some type of setting affecting the redirect within the web server itself, or does the problem lie elsewhere? All help will be greatly appreciated.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks serchlop,
That took care of it!
That took care of it!
ASKER
Thanks a bunch!
For Windows IIS
http://raoulpop.com/2007/08/07/automatic-redirect-from-http-to-https/
For Apache
http://joseph.randomnetworks.com/2004/07/22/redirect-to-ssl-using-apaches-htaccess/