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?
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.
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
tried doesnt workedkestas wrote: ↑Wed Nov 08, 2017 3:40 amYou 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]
should work. maybe some mistake left in code.
Try this one to paste to your htaccess. file in main directory:
there not need make any changes...
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]
Custom OpenCart modules and solutions. You can write PM with additional questions... Extensions you can find here
nothing works for me at opencart everything is bugged....kestas wrote: ↑Wed Nov 08, 2017 4:23 amshould work. maybe some mistake left in code.
Try this one to paste to your htaccess. file in main directory:there not need make any changes...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]
does htaccess file needs to be with 2 dots or only with one?
Who is online
Users browsing this forum: Google [Bot] and 107 guests