Solved

https to http for whole site

Posted on 2016-09-15
3
79 Views
Last Modified: 2016-10-13
I had this question after viewing Going from HTTPS to HTTP.

I have basically the same problem as the question above. But I think we have scattered links through out the site that have https in them, so https links are staying in the searches. We don't want to scour through the site for them because we're not really working actively with it anymore.

It's on Debian GNU/Linux server. I tried using the below code and it doesn't work. I assume it's because it's checking for ssl to be on and since it isn't it skips the rule? I couldn't find any examples searching that were different than this.

RewriteEngine On
RewriteCond %{HTTPS} ^on$
RewriteRule ^(.*)$ http://www.seoautomatic.com/$1 [NC,L,R]

Open in new window


Thanks for any help.
0
Comment
Question by:Dzynit
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
Jason earned 500 total points
ID: 41800738
Give something like this a try...

RewriteEngine on
RewriteCond %{HTTP_HOST} ^seoautomatic.com$
RewriteRule ^/?$ "http\:\/\/www\.seoautomatic\.com\/" [R=301,L]

Open in new window

0
 
LVL 14

Author Comment

by:Dzynit
ID: 41800739
Dangit, still didn't work:
https://www.seoautomatic.com/blog
0
 
LVL 14

Author Closing Comment

by:Dzynit
ID: 41842394
I know your solution didn't work for me but I normally it should. I'm assuming it must be something specific the server is set to look for.
0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction HyperText Transfer Protocol (http://www.ietf.org/rfc/rfc2616.txt) or "HTTP" is the underpinning of internet communication.  As a teacher of web development I have heard many questions, mostly from my younger students who have come to t…
A few customers have recently asked my thoughts on Password Managers.  As Security is a big part of our industry I was initially very hesitant and sceptical about giving a program all of my secret passwords.  But as I was getting asked about them mo…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question