1. No Profile Picture
    Registered User
    SEO Chat Explorer (0 - 99 posts)

    Join Date
    Apr 2013
    Rep Power

    apache redirects https to http

    My struggle with apache redirects is back. I just redid a website that forced https on all pages no matter what. The new site only uses https on pages where sensitive information is entered. I don't think I can do an across the board redirect rule, because I still use https on a few pages. The URL structure has changed entirely from "https://www.example.com/category.php?id_category=123" to "http//www.example.com/category/sub-cat.html".

    I usually put all my redirects in my web admin where I set up my vhosts. I have one for the regular port 80 and one for the 443. with these redirects going from one to the other, I'm not even sure where to put this redirect at all.

    Sorry for my n00b-ness.
  2. #2
  3. Seo Control Panel
    SEO Chat Discoverer (100 - 499 posts)

    Join Date
    Feb 2014
    Rep Power
    You can put redirection rule in .htaccess file in root folder of your website.

    Hope following rule will help you, anyway you need to edit it specifically for your category page

    RewriteEngine On
    RewriteCond %{HTTPS} on
    RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

Similar Threads

  1. Replies: 2
    Last Post: Aug 8th, 2013, 02:53 AM
  2. Replies: 4
    Last Post: Dec 17th, 2010, 01:59 PM
  3. Http/https
    By Mrkay in forum Google Optimization
    Replies: 3
    Last Post: Jul 30th, 2009, 09:08 AM
  4. Http: and https
    By Hilary in forum Google Optimization
    Replies: 2
    Last Post: Mar 20th, 2009, 08:08 AM
  5. Https vs http
    By purse9644 in forum Google Optimization
    Replies: 1
    Last Post: Feb 10th, 2009, 10:57 AM

IMN logo majestic logo threadwatch logo seochat tools logo