InMotion Hosting Support Center

Redirect HTTPS to HTTP on a VPS account

Category: Ssl

2012-02-15 1:45 am EST

Hits: 5,171
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* to*

You must login before you can ask a follow up question.

You must login before you can submit an answer.



3,862 Points
2012-02-15 9:43 am EST
Hi thenorrisgroup,

Thank you for submitting a question about Redirect HTTPS to HTTP on a VPS account.

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 ^(.*)$$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.


You must login before you can post a comment about this answer.

Like this Question?

Forum Login

You are NOT logged in. You can still browse our Support Center.

To participate within our Community Support Forum:

Need more Help?

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:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!