Post by ngbehht » Sat Nov 08, 2014 9:54 am

I just installed OpenCart 2.0. All is going fine, until I view my site - "most" of the images show up fine, but all my "button" icons do not (i.e. like the flag icon, add to cart icon, add to wish list icon, etc.).. I looked for the image files in the folder I uploaded to my server, and I couldn't locate them... could they be missing from the package?? The only images were all the product images, etc.

All the product images show up fine, but all those image files are included in the upload content folder. If they were missing... how can I get them now???

Please help someone - thanks :-)

Newbie

Posts

Joined
Sat Nov 08, 2014 9:45 am

Post by pprmkr » Sat Nov 08, 2014 2:30 pm

They are on an other domain.

Type store-url as entered when setting up store.

http://www.your-store.domain is not your-store.domain

Use .htaccess with rewriterules

Code: Select all

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

# with www to without www.
RewriteCond %{HTTP_HOST} !^your-store.domain$ [NC]
RewriteRule ^(.*)$ http://your-store.domain/$1 [L,R=301]

User avatar
Active Member
Online

Posts

Joined
Sat Jan 08, 2011 11:05 pm
Location - Netherlands

Post by Myllar » Wed Dec 03, 2014 1:55 am

I have the same issue.

shall the rewrite rules set in the .htacess or in .htacess.txt file?

Do i need to add my url somewhere in the code?
or just the past in the raw code you added ?

Newbie

Posts

Joined
Fri Nov 28, 2014 11:17 pm

Post by pprmkr » Wed Dec 03, 2014 4:52 pm

The text file .htaccess.txt has to be renamed to .htaccess, otherwise it has no effect.

Edit .htaccess and add after:

Code: Select all

RewriteBase /
If you url starts with www.

Code: Select all

RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
If url does not contain www.

Code: Select all

RewriteCond %{HTTP_HOST} !^your-store.domain$ [NC]
RewriteRule ^(.*)$ http://your-store.domain/$1 [L,R=301]
Replace 'your-store.domain' with your store-url

User avatar
Active Member
Online

Posts

Joined
Sat Jan 08, 2011 11:05 pm
Location - Netherlands
Who is online

Users browsing this forum: No registered users and 6 guests