Solved

https to http for whole site

Posted on 2016-09-15
3
128 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 8

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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

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…
Microservice architecture adoption brings many advantages, but can add intricacy. Selecting the right orchestration tool is most important for business specific needs.
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

635 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