Solved

https to http for whole site

Posted on 2016-09-15
3
36 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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Introduction A frequent question goes something like this, "How can I show an introductory page to my clients on the first site visit, but not show it again on every visit?"  The answer is by using a cookie.  This article shows the design pattern f…
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…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

757 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now