Results 1 to 2 of 2
  1. #1
    Join Date
    Jul 2010
    Posts
    2
    Plugin Contributions
    0

    Default redirect http to https

    Hi everybody,
    I have a small issue.
    How do I redirect
    http://shop.com/products/index.php?main_page=login
    to
    https://shop.com/products/index.php?main_page=login

    After I've googled it a few times, I've tried to write the following code in an .htaccess file in the products folder, but it doesn't work. The SSL is on, but there must something wrong with the code I wrote.

    Options +FollowSymLinks
    Options -Indexes
    ServerSignature Off
    RewriteEngine on
    RewriteBase /

    RewriteCond %{SERVER_PORT} 80
    RewriteCond %{REQUEST_URI} products/index.php
    RewriteRule ^(.*)$ https://www.shop.com/products/index.php?main_page=login$1 [R,L]

    I'm dummy with .htacess files, so any help would be apreciated.
    Thatnks.

  2. #2
    Join Date
    Jul 2006
    Location
    Montreal, Canada
    Posts
    2,279
    Plugin Contributions
    0

    Default Re: redirect http to https

    do you have SSL installed ? if so , you need to modify your configure.php files to enable SSL . Zencart is smart cart , will redirect to SSL ( https) for needed pages , such as your login page.

 

 

Similar Threads

  1. SSL is on, but http:// login page does not redirect to https://
    By jackie.taferner in forum Basic Configuration
    Replies: 17
    Last Post: 16 Jun 2011, 04:53 PM
  2. How to redirect from http to https?
    By taogem in forum General Questions
    Replies: 4
    Last Post: 1 Sep 2010, 11:49 PM
  3. Http to Https
    By mousehouse in forum Installing on a Linux/Unix Server
    Replies: 7
    Last Post: 22 Oct 2009, 06:19 PM
  4. http://www. vs Http: How Do I redirect ?
    By milobloom in forum General Questions
    Replies: 6
    Last Post: 10 Sep 2008, 01:58 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR