Post by jeccsarms » Fri Jun 24, 2016 3:43 am

I can not log into my admin page after using htaccess redirect for https. Below is what I have in the htaccess file and my config.php's.

Code: Select all

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteBase /
RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
RewriteRule ^system/download/(.*) index.php?route=error/not_found [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
RewriteRule .* - [E=HTTP_IF_MODIFIED_SINCE:%{HTTP:If-Modified-Since}]
Config:

Code: Select all

<?php
// HTTP
define('HTTP_SERVER', 'http://www.shopccsfirearms.com/');

// HTTPS
define('HTTPS_SERVER', 'https://www.shopccsfirearms.com/');
Admin Config:

Code: Select all

<?php
// HTTP
define('HTTP_SERVER', 'http://www.shopccsfirearms.com/admin/');
define('HTTP_CATALOG', 'http://www.shopccsfirearms.com/');

// HTTPS
define('HTTPS_SERVER', 'https://www.shopccsfirearms.com/admin/');
define('HTTPS_CATALOG', 'https://www.shopccsfirearms.com/');
Last edited by i2Paq on Sat Jun 25, 2016 4:07 pm, edited 1 time in total.
Reason: Code tags added

Newbie

Posts

Joined
Thu Jun 23, 2016 2:50 am

Post by i2Paq » Fri Jun 24, 2016 3:04 pm

Did you use are FREE search?

There are more topics related to your issue and maybe there is a solution in there for you.

Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________

Our FREE search: Find your answer FAST!.

[How to] BTW + Verzend + betaal setup.


User avatar
Global Moderator

Posts

Joined
Mon Nov 09, 2009 7:00 pm
Location - Winkel - The Netherlands

Post by jeccsarms » Sat Jun 25, 2016 11:39 am

I looked at several others who had similar issues and tried the solutions that they found with no success.

Newbie

Posts

Joined
Thu Jun 23, 2016 2:50 am

Post by straightlight » Sat Jun 25, 2016 7:35 pm

jeccsarms wrote:I looked at several others who had similar issues and tried the solutions that they found with no success.
Have you tried this solution? http://stackoverflow.com/questions/3627 ... t/37996993

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by jeccsarms » Mon Jun 27, 2016 1:36 am

This solution worked. Thanks!!!

Newbie

Posts

Joined
Thu Jun 23, 2016 2:50 am
Who is online

Users browsing this forum: Jaesin and 17 guests