Results 1 to 2 of 2

Switch from "https" to "http"

This is a discussion on Switch from "https" to "http" within the General Discussion forums, part of the vBSEO SEO Plugin category; Hi, I currently have https for the whole site and now would like to use https only for a particular ...

  1. #1
    Member
    Real Name
    vv.help
    Join Date
    Sep 2011
    Posts
    39
    Liked
    2 times

    Exclamation Switch from "https" to "http"

    Hi,

    I currently have https for the whole site and now would like to use https only for a particular directory (required by a facebook app) and not for whole site (annoying warning messages every time in IE)..


    I updated the http url;s in the vb options and have the following in root .htaccess
    # Use PHP5 Single php.ini as defaultAddHandler application/x-httpd-php5s .php
    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^www\.mydomain\.com
    RewriteRule (.*) http://www.mydomain.com/$1 [L,R=301]


    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]


    RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap|api\.php)
    RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]


    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/
    RewriteRule ^(.+)$ vbseo.php [L,QSA]
    and i have put the following .htaccess in the specific facebook app directory
    RewriteEngine On
    RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://domain.com/$1 [R,L]
    Now after changing all these when i type my url like http://www.mydomain.com it is still redirecting to "https://www.usindiatalk.com"

    Is there anything else i should do ?

    Thanks in advance,

  2. #2
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    You should add a similar rule for root

    Code:
    RewriteCond %{SERVER_PORT} 443 OR
    RewriteCond %{HTTPS} on
    RewriteRule ^(.*)$ http://domain.com/$1 [R,L]

    and don't screw up the www's. Match your vboptions.

Similar Threads

  1. Replies: 6
    Last Post: 04-12-2011, 05:35 PM
  2. Replies: 3
    Last Post: 02-20-2011, 07:04 PM
  3. Replies: 2
    Last Post: 11-09-2010, 12:29 PM
  4. Replies: 7
    Last Post: 04-28-2007, 04:11 AM
  5. Replies: 5
    Last Post: 09-09-2006, 04:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •