Post by coldrex » Mon Dec 05, 2016 10:27 pm

Hello,

a pic:

Image

After moving a site, it stopped loading icons of cart, profile etc.

What is the problem?
Last edited by coldrex on Tue Dec 06, 2016 4:54 am, edited 1 time in total.

User avatar
New member

Posts

Joined
Thu Jun 07, 2012 10:05 pm

Post by imdevlper18 » Mon Dec 05, 2016 10:38 pm

Hello Coldrex,

Such issues can occur because of any reason below:

1) You configured website with www and you are trying to visit non - www
2) Calling http link from https page.
3) No font-awesome css file called in header.

You can share your store link in order to check. So it can be helped faster.

Opencart Extensions | Professional opencart support | Support Ticket | support@cartbinder.com


User avatar
Active Member

Posts

Joined
Sun May 11, 2014 2:04 pm

Post by coldrex » Tue Dec 06, 2016 2:28 am

yes, please.

http://topkamin.se

User avatar
New member

Posts

Joined
Thu Jun 07, 2012 10:05 pm

Post by IP_CAM » Tue Dec 06, 2016 2:47 am

if you want to have it as http:// topkamin. se
you have to change your BOTH config.php files to:
ROOT:

Code: Select all

<?php
// HTTP
define('HTTP_SERVER', 'http://topkamin.se/');
// HTTPS
define('HTTPS_SERVER', 'http://topkamin.se/');
ADMIN:

Code: Select all

<?php
// HTTP
define('HTTP_SERVER', 'http://topkamin.se/admin/');
// HTTPS
define('HTTPS_SERVER', 'http://topkamin.se/admin/');
and in your .htaccess file, after this:

Code: Select all

# SEO URL Settings
RewriteEngine On
RewriteBase /
you have to add this, to have all http://www.xxx.se Calls rewritten to http://xxx.se

Code: Select all

#Force (http host) www to non www (optional)
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

#Force (https host) www to non www (optional)
RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
in order to make sure, that, regardless of, how a Site URL is called (with www. or not),
the LINK will be rewritten to http:// topkamin. se
Then, you'll have your FontAwesome generated ICON's visible on Screen!
Good Luck! ;)
Ernie
---
And just to mention it:
Or then, in reverse, and by use of this .htaccess Code instead,
if you want it to work in the HTTP://WWW. - way ONLY:

Code: Select all

#Force (http host) non www to www (optional)
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

#Force (https host) non www to www (optional)
RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland

Post by coldrex » Tue Dec 06, 2016 4:53 am

My friend, You are a genious.

Many many thanks!

User avatar
New member

Posts

Joined
Thu Jun 07, 2012 10:05 pm
Who is online

Users browsing this forum: Google [Bot] and 59 guests