Redirect HTTPS to HTTP on a VPS account
Category: Ssl
An older version of one of our sites used HTTPS. The current version does not. Some people still have our old links, however. How do we redirect people who visit using https://domain.com/* to http://www.domain.com/*
OTHER ANSWERS
|
0
|
Hi thenorrisgroup, Option 1. If you will keep your SSL Certificate We have an article here on how to force https, however you're actually trying to do the opposite. You can take that example code and modify is slightly so that it forces https to http: RewriteEngine On RewriteCond %{SERVER_PORT} 443 RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R,L] You will simply need to add the above code to your .htaccess file. Option 2. You will be canceling / not renewing your SSL certificate. After much research, I've learned that the SSL connection is made before Apache can process any rewrite rules. What this means is that if you don't have a valid ssl certificate, your user's browser will issue them some type of SSL Warning before Apache will even force the https to http redirect. Without an SSL certificate, you will not be able to force https to http. I hope this helps answer your question. If you have any further questions, feel free to update your question or post a comment on this page. Did you know with a VPS you can modify your Apache settings to how you want it setup? Click here to learn more about what make InMotion Hosting a great VPS solution. Thanks! - Brad |
Like this Question?
Tweet
Latest Questions
If you need some help, submit your question to our Community!
We guarantee a response within 60 minutes (8am - 9pm EST, Monday - Friday)
Recent QuestionsNeed more Help?
Search
Ask the Community!
Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.
Current Customers
| Chat: | Click to Chat Now | E-mail: | support@InMotionHosting.com |
|---|---|---|---|
| Call: | 888-321-HOST (4678) | Ticket: | Submit a Support Ticket |


