Page 1 of 1

SEO on SSL cant load page

Posted: Tue Mar 08, 2016 8:56 pm
by fakhricker
i thought that was bug for seo but when i installed on the other hosting and domain thats totaly not seo bug
look http://www.blimurah.com/desktops/pc
http://s10.postimg.org/5djueg6s9/withou ... _works.png

but when im installed ssl on my hosting it cant load compelete. Its like .css wont load in ssl mode
https://www.gamio.web.id/desktops/pc
http://s22.postimg.org/gomoisxlt/seo_ssl_not_work.png

but thats became strange when in category i click Show All Desktop in Desktop menu
https://www.gamio.web.id/desktops
http://s27.postimg.org/eldvcuhqb/132.png

Sry for my bad language
:)

Re: SEO on SSL cant load page

Posted: Tue Mar 08, 2016 9:10 pm
by daniGo
Check if some extension cause this error or try to contact your host.

This is CSS from https://www.gamio.web.id/desktops

https://www.gamio.web.id/catalog/view/j ... ap.min.css

This is CSS from https://www.gamio.web.id/desktops/mac

https://www.gamio.web.id/desktops/catal ... ap.min.css

I don't' know why the site trying to load CSS and JS from https://www.gamio.web.id/desktops/ and not https://www.gamio.web.id/

Re: SEO on SSL cant load page

Posted: Tue Mar 08, 2016 9:35 pm
by fakhricker
But when im disabled SEO mode the page load completely
https://www.gamio.web.id/index.php?rout ... path=20_26
Image

this version is standard with standard ext
._.

Re: SEO on SSL cant load page

Posted: Tue Mar 08, 2016 10:00 pm
by daniGo
On my store i set seo to all urls and all working fine CSS and JS. I don't know why this happen on your store. Try look in .htaccess settings or maybe server settings.

Re: SEO on SSL cant load page

Posted: Tue Mar 08, 2016 10:05 pm
by fakhricker
daniGo wrote:On my store i set seo to all urls and all working fine CSS and JS. I don't know why this happen on your store. Try look in .htaccess settings or maybe server settings.
May i look ur link store?
._.

This my htaccess code

Code: Select all

# 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 /
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

Re: SEO on SSL cant load page

Posted: Wed Mar 09, 2016 5:48 am
by Randem
hi fakhricker,

Possibly some help - http://www.randemsystems.com/support/op ... s-to-work/

Re: SEO on SSL cant load page

Posted: Thu Mar 10, 2016 12:11 am
by fakhricker
Ok i'll try

Re: SEO on SSL cant load page

Posted: Thu Mar 10, 2016 2:02 am
by daniGo
I think this is a solution:

Open catalog/controller/startup/startup.php

and after

$this->config->set('config_url', HTTP_SERVER);

add

$this->config->set('config_ssl', HTTPS_SERVER);

Re: SEO on SSL cant load page

Posted: Fri May 27, 2016 5:32 am
by vesel@abv.bg
I have the same problem.
Confirm. The last solution works on OpenCart 2.2 with ssl and seo url enabled.

Re: SEO on SSL cant load page

Posted: Fri Jun 24, 2016 12:47 am
by integris
Just this one change didn't fix it for me, I spent all night working through the different suggestions and have a workin OC 2.2 https/www on all pages solution here: http://stackoverflow.com/questions/3627 ... 3#37996993

Re: SEO on SSL cant load page

Posted: Sat Oct 01, 2016 5:32 pm
by stagosal
Hello i have installed an SSL certificate on opencart 2.2.0. I finaly have manage do get everything working. Even if i enabled ssl from the admin settings the checkout page was not on https. THe only problem i encounter is that at other pages when https:// is enabled the subdirectoris on SEO urls does not display images or css. I have tried everything. i added
$this->config->set('config_ssl', HTTPS_SERVER); at the sturtup.php file but nothing changed.

My website is canvas-shop.gr. Fore example:

http://canvas-shop.gr/subjects/modern-art/ works
https://canvas-shop.gr/subjects/modern-art/ does not work

https://canvas-shop.gr/subjects works
https://canvas-shop.gr/subjects/ does not work

It is driving me crazy. Because i was thinking to run https on every page.

Re: SEO on SSL cant load page

Posted: Sun Oct 02, 2016 2:30 am
by Randem
Hi stagosal ,

Running SSL on EVERY Page is the way to go. Google is thinking of penalizing sites that are not totally HTTPS. It is also bad for customer confidence not to be totally HTTPS. SSL is meant to work on your whole site not part of it. You need code changes to administer SSL. You need to change your .htaccess and OpenCart software.

Re: SEO on SSL cant load page

Posted: Sun Oct 09, 2016 12:05 am
by EvolveWebHosting
stagosal wrote:Hello i have installed an SSL certificate on opencart 2.2.0. I finaly have manage do get everything working. Even if i enabled ssl from the admin settings the checkout page was not on https. THe only problem i encounter is that at other pages when https:// is enabled the subdirectoris on SEO urls does not display images or css. I have tried everything. i added
$this->config->set('config_ssl', HTTPS_SERVER); at the sturtup.php file but nothing changed.

My website is canvas-shop.gr. Fore example:

http://canvas-shop.gr/subjects/modern-art/ works
https://canvas-shop.gr/subjects/modern-art/ does not work

https://canvas-shop.gr/subjects works
https://canvas-shop.gr/subjects/ does not work

It is driving me crazy. Because i was thinking to run https on every page.
Give this a try in your .htaccess file and then update both config files for SSL.

http://stackoverflow.com/questions/2141 ... h-from-url

Re: SEO on SSL cant load page

Posted: Tue Oct 18, 2016 4:42 pm
by stagosal
I really want to enable SSL at all pages but you see what i encounter. The homepage works with SSL.
A directory link works ex. https://canvas-shop.gr/subjects
But all directories from that point do not load the css and images. https://canvas-shop.gr/subjects/modern-art
Try it out.

No css is not loaded with 404 error:
https://canvas-shop.gr/subjects/modern- ... ?j2v=2.7.1 Failed to load resource: the server responded with a status of 404 ()
As you can see it adds "/subjects/modern-art/" before "/catalog/view/........"

The correct filepath of the css should be "https://canvas-shop.gr/catalog/view/the ... ?j2v=2.7.1"

Re: SEO on SSL cant load page

Posted: Tue Nov 01, 2016 2:52 am
by stagosal
bump

Re: SEO on SSL cant load page

Posted: Tue Nov 01, 2016 4:15 am
by IP_CAM
check here:
https://www.opencart.com/index.php?rout ... n_id=26740
and here:
http://www.fastcomet.com/tutorials/opencart2/enable-ssl

so, you possibly find a valid answer on this...
Good Luck!
Ernie

Re: SEO on SSL cant load page

Posted: Tue Jun 12, 2018 8:32 pm
by ndim_pro
daniGo wrote:
Thu Mar 10, 2016 2:02 am
I think this is a solution:

Open catalog/controller/startup/startup.php

and after

$this->config->set('config_url', HTTP_SERVER);

add

$this->config->set('config_ssl', HTTPS_SERVER);
Your solution, this row of code gave an end to two days of absolute frustration for me.
Thank you!!!