I have an SSL certificate on my website here: http://www.greatwings.com/ I am trying to force HTTPS but the site shows depending on whether or not you add the additional secrutiy S or not in the URL. My current configuration does not force HTTP on the front end. I wish it would just redirect to the secure site when someone lands on the insecure page.
Please note I do have Ultimate URL's turned on. But I have followed the instructions but it still does not work.
In my file: admin> includes> configure.php I have these settings:
Code:
define('HTTP_SERVER', 'https://www.greatwings.com');
define('HTTP_CATALOG_SERVER', 'http://www.greatwings.com');
define('HTTPS_CATALOG_SERVER', 'https://www.greatwings.com');
define('ENABLE_SSL_CATALOG', 'true');
In my file: includes> configure.php I have these settings:
Code:
define('HTTP_SERVER', 'http://www.greatwings.com');
define('HTTPS_SERVER', 'https://www.greatwings.com');
define('ENABLE_SSL', 'true');
So that all seems correct right? Well the page does not redirect if you type a non-secure URL like: http://www.greatwings.com. So the issue must be in the .htaccess right? So this is my .htaccess file:
Code:
###############################################################################
# Common directives
###############################################################################
# NOTE: Replace /shop/ with the relative web path of your catalog in the "Rewrite Base" line below:
Options +FollowSymLinks
RewriteEngine on
RewriteBase /
###############################################################################
# Start Ultimate SEO URLs
###############################################################################
# Handles the new URL formats
RewriteRule ^(.*)-c-([0-9_]+)/(.*)-p-([0-9]+)(.*)$ index\.php?main_page=product_info&products_id=$4&cPath=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-c-([0-9_]+)/(.*)-pi-([0-9]+)(.*)$ index\.php?main_page=popup_image&pID=$4&cPath=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-c-([0-9_]+)/(.*)-pr-([0-9]+)(.*)$ index\.php?main_page=product_reviews&products_id=$4&cPath=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-c-([0-9_]+)/(.*)-pri-([0-9]+)(.*)$ index\.php?main_page=product_reviews_info&products_id=$4&cPath=$2&%{QUERY_STRING} [L]
# Original (unchanged) URL formats
RewriteRule ^(.*)-p-([0-9]+)(.*)$ index\.php?main_page=product_info&products_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-m-([0-9]+)(.*)$ index\.php?main_page=index&manufacturers_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-pi-([0-9]+)(.*)$ index\.php?main_page=popup_image&pID=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-pr-([0-9]+)(.*)$ index\.php?main_page=product_reviews&products_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-pri-([0-9]+)(.*)$ index\.php?main_page=product_reviews_info&products_id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-ezp-([0-9]+)(.*)$ index\.php?main_page=page&id=$2&%{QUERY_STRING} [L]
RewriteRule ^(.*)-c-([0-9_]+)(.*)$ index\.php?main_page=index&cPath=$2&%{QUERY_STRING} [L]
# All other pages
# Don't rewrite real files or directories
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index\.php?main_page=$1&%{QUERY_STRING} [L]
# Use PHP70 as default
AddHandler application/x-httpd-php70 .php
<IfModule mod_suphp.c>
suPHP_ConfigPath /opt/php70/lib
</IfModule>
RewriteCond %{HTTP_HOST} ^aviationinsignia\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.aviationinsignia\.com$
RewriteRule ^/?$ "https\:\/\/www\.greatwings\.com" [R=301,L]
Anyone see the issue here? I really need the primary site to redirect to a secure URL if someone visits from an insecure URL. Any ideas?
Bookmarks