Post by webnurse » Sat Oct 27, 2018 10:21 am

I am using an installation of OpenCart 2.2.0.0. I have system-wide SSL installed and I checked with it at sslshopper.com and it shows green light all the way.
I have SSL enabled in OpenCart. I have an .htaccess script in public_html to force ssl. The code for that reads:
RewriteCond %{SERVER_PORT} 80
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^(.*)$ https://mystore.com/$1 [R=301,L]
Going to mystore.com lands me in https://mystore.com
Going to mystore.com/shop (where my store root is) lands me in https://mystore.com/shop
Going to my admin login page at mystore.com/shop/admin lands me in https://mystore.com/shop/admin but I can't enter the admin.

If I activated the .htaccess.txt file in the /admin/ directory; it is like this:
# 1.To use URL Alias you need to be running apache with mod_rewrite enabled.

# 2. In your opencart directory rename htaccess.txt to .htaccess.

# For any support issues please visit: http://www.opencart.com

Options +FollowSymlinks

# Prevent Directoy listing
Options -Indexes

# Prevent Direct Access to files
<FilesMatch "(?i)((\.tpl|\.ini|\.log|(?<!robots)\.txt))">
Order deny,allow
Deny from all
</FilesMatch>

# SEO URL Settings
RewriteEngine On
# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/


RewriteBase /shop/
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]

### Additional Settings that may need to be enabled for some servers
### Uncomment the commands by removing the # sign in front of it.
### If you get an "Internal Server Error 500" after enabling any of the following settings, restore the # as this means your host doesn't allow that.

# 1. If your cart only allows you to add one item at a time, it is possible register_globals is on. This may work to disable it:
#php_flag register_globals off

# 2. If your cart has magic quotes enabled, This may work to disable it:
#php_flag magic_quotes_gpc Off

# 3. Set max upload file size. Most hosts will limit this and not allow it to be overridden but you can try
# php_value upload_max_filesize 999M

# 4. set max post size. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value post_max_size 999M

# 5. set max time script can take. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value max_execution_time 200

# 6. set max time for input to be recieved. Uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value max_input_time 200

# 7. disable open_basedir limitations
# php_admin_value open_basedir none
I have also renamed the http links in the store and admin config.php files to https. That allows me to get into my store admin but I get undefined errors and can't see the map or orders icon in the dashboard. I also cannot see the tabs on the left menu, but when I mouse over them the sub categories show up. The icons in my payment module are absent (just colored squares). I have tried disabling each hash tag in the .htaccess file, one by one, but it makes no difference except sometimes more undefined errors result.

Because I can't get an active SSL dashboard, I can't install my payment module.
I would appreciate any advice on what to try next. Thanks.

Newbie

Posts

Joined
Thu Oct 18, 2018 3:55 am

Post by webnurse » Tue Oct 30, 2018 1:46 am

Anyone? Help is greatly appreciated!!

Newbie

Posts

Joined
Thu Oct 18, 2018 3:55 am

Post by OSWorX » Tue Oct 30, 2018 4:12 am

webnurse wrote:
Sat Oct 27, 2018 10:21 am
That allows me to get into my store admin but I get undefined errors and can't see the map or orders icon in the dashboard. I also cannot see the tabs on the left menu, but when I mouse over them the sub categories show up.
The icons in my payment module are absent (just colored squares).
Sounds you are missing to load the/some css.
Check the source code and you know what is not loaded.

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Guru Member
Online

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by webnurse » Tue Oct 30, 2018 9:06 am

Thank you for responding. Just an update - I learned that a variable "site_ssl" in files in /shop/system/config needed to be set true. I don't know why setting ssl in the OpencCart system settings to ON didn't do this...

Anyway I appreciate the assistance. Thanks.

Newbie

Posts

Joined
Thu Oct 18, 2018 3:55 am

Post by OSWorX » Tue Oct 30, 2018 4:30 pm

And does it work now?

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Guru Member
Online

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria
Who is online

Users browsing this forum: No registered users and 164 guests