Post by Irkluojubbd » Wed Nov 08, 2017 3:21 am

2.0.2.0 icons doesnt show up.
when i type with non-www icons doesnt show up, when i type with www. it shows, how do i fix that?

New member

Posts

Joined
Sun Oct 29, 2017 5:57 am

Post by kestas » Wed Nov 08, 2017 3:40 am

You can do it using .htaccess
Change .htaccess.txt to .htaccess and edit it in notepad. at the end paste this code, by replacing 'mysite' with the your site name. and extension of the site '.com' to your site extension.

Code: Select all

#Force non-www:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.mysite\.com [NC]
RewriteRule ^(.*)$ http://mysite.com/$1 [L,R=301]

Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here


Active Member

Posts

Joined
Tue Oct 12, 2010 2:23 am

Post by Irkluojubbd » Wed Nov 08, 2017 4:07 am

kestas wrote:
Wed Nov 08, 2017 3:40 am
You can do it using .htaccess
Change .htaccess.txt to .htaccess and edit it in notepad. at the end paste this code, by replacing 'mysite' with the your site name. and extension of the site '.com' to your site extension.

Code: Select all

#Force non-www:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.mysite\.com [NC]
RewriteRule ^(.*)$ http://mysite.com/$1 [L,R=301]
tried doesnt worked

New member

Posts

Joined
Sun Oct 29, 2017 5:57 am

Post by kestas » Wed Nov 08, 2017 4:23 am

should work. maybe some mistake left in code. :)
Try this one to paste to your htaccess. file in main directory:

Code: Select all

RewriteEngine On
RewriteCond %{HTTP_HOST} !=""
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{HTTPS}s ^on(s)|
RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
there not need make any changes...

Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here


Active Member

Posts

Joined
Tue Oct 12, 2010 2:23 am

Post by Irkluojubbd » Wed Nov 08, 2017 4:33 am

kestas wrote:
Wed Nov 08, 2017 4:23 am
should work. maybe some mistake left in code. :)
Try this one to paste to your htaccess. file in main directory:

Code: Select all

RewriteEngine On
RewriteCond %{HTTP_HOST} !=""
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{HTTPS}s ^on(s)|
RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
there not need make any changes...
nothing works for me at opencart everything is bugged....

does htaccess file needs to be with 2 dots or only with one?

New member

Posts

Joined
Sun Oct 29, 2017 5:57 am

Post by kestas » Wed Nov 08, 2017 6:37 am

must be .htaccess

Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here


Active Member

Posts

Joined
Tue Oct 12, 2010 2:23 am
Who is online

Users browsing this forum: No registered users and 12 guests