I have a blog with a domain that I moved to a new host and now it doesn't have SSL certificate installed on it. There are certain links to that domain that where bookmarked using https and now that SSL is not installed on the new server users who access the bookmark pages are sending me feedback that they are having error messages trying to access the website.

I want to set up the account so that when those users click on the link in https://www.domain.com/folder/file.php should redirect the user to the link http://www.domain.com/folder/file.php instead

Can someone kindly explain how to do that? Thank you

Recommended Answers

All 2 Replies

You can use a .htaccess file with the following content:

RewriteEngine On
RewriteCond %{HTTPS} on
RewriteRule (.*) http://www.example.com/$1 [R=301]

I've tried that on my but its not working. I use Cpanel running on Apache.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.