subdomain for images

This topic has been marked as not resolved.

hi,

modify the folder of images on a subdomain and I have a problem with all the slide and custom background, pictures of items no have problem,.

but where should I edit to fix this?.

thx

April 16, 2012 at 2:17 am #8090

Hi,

Can you explain a bit more. Posting the website address and a screenshot with the exact images will help a lot as well.

Best,
ThemeBurn team

April 17, 2012 at 5:02 pm #8138

hi

Use the following guide to optimize e-commerce, all images and product catalog works well! .. but (slider banners) immagenes does not load!
In the part of administration immages corectamente I can see the problem in the Store Front.

for the moment to solve this leaves a copy of the images in the default directory

translated by google!

http://www.box.com/s/5025cd421e57b49af7aa

 
How to use a subdomain for images

Postby Qphoria ยป Fri Sep 09, 2011 5:58 pm
According to Google Page Speed and other resources on the net, it is recommended to use a subdomain for your image loading as opposed to a subdirectory.

So instead of:

Code: Select all
    http://www.mysite.com/shop/
    http://www.mysite.com/shop/image/

You would use:

Code: Select all
    http://www.mysite.com/shop/
    http://image.mysite.com/

You can do this easily in OpenCart.

1. Goto your webhost's cpanel and click the "Subdomains" area
2. Setup a new subdomain called "image.mysite.com". (replace "mysite" with your real site)
3. Setup the redirect for that subdomain to point to your current store url to the image path
(e.g. http://www.mysite.com/shop/image/)

Now you have setup the subdomain to point directly to your store image folder. Now you will want to set the new subdomain in opencart.

For 1.5.x:
1. EDIT: config.php

2. CHANGE (for example):

Code: Select all
    define('HTTP_IMAGE', 'http://www.mysite.com/shop/image/');

TO:

Code: Select all
    define('HTTP_IMAGE', 'http://image.mysite.com/');

Notice I removed the "shop/image" after the ".com" part. Since you've included the store path as part of the redirect path, you don't need to include it as part of this path.

3. CHANGE (for example):

Code: Select all
    define('HTTPS_IMAGE', 'https://www.mysite.com/shop/image/');

TO:

Code: Select all
    define('HTTPS_IMAGE', 'https://image.mysite.com/');

If using SSL be sure you set this to use "https://" otherwise use "http://"  

  • This reply was modified 4408 days ago by  thepaladin.
  • This reply was modified 4408 days ago by  thepaladin.
  • This reply was modified 4408 days ago by  thepaladin.
  • This reply was modified 4408 days ago by  thepaladin.
April 19, 2012 at 11:38 am #8189

We admit this is a Shoppica bug, which will be fixed in the next minor update – Shoppica 1.0.13. It will be released within the next month. Until then you have to use the default settings for the HTTP_IMAGE if you want to use Shoppica Intro & Banners.

Regards,
ThemeBurn team

April 23, 2012 at 10:18 am #8242
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.