Change image folder to subdirectory

ThemeBurn SupportForumsOpenCart ThemesShoppica 2 OpenCart ThemeChange image folder to subdirectory

This topic has been marked as not a support question.

Hello Guys!
I remember reading in your forum about moving the image folder to a subdirectory in order to increase speed.

I have looked up on google, but still can’t make it right. It seems the tutorials are not updated.

I created a subdirectory on cpanel: myimages.mystore.com and this directory is pointing to /public_html/image/ (the original folder for images)

I edit my config.php file from the root directory of my OC:

Grab this line:
define('DIR_IMAGE', '/hermes/bosweb25a/b70/nf.mystore/public_html/image/');

and changed for this:
define('DIR_IMAGE', '/hermes/bosweb25a/b70/nf.mystore/myimages/');

When I load the website, there are no images. So I guess something was done wrong.

Do you mind to give me a help?
Thanks

August 19, 2013 at 3:23 am #26657

Make sure your images are accessible from your domain. In your case you are hiding the images folder from the root server’s directory and they cannot be opened.

Also, moving the images to a subfolder won’t bring you performance gain. The site’s loading speed will benefit a little if you move your images to another domain or subdomain or even more – CDN server, but the gain is modest.

Regards,
ThemeBurn team

August 20, 2013 at 4:09 pm #26763

My bad guys!
I was asking about moving it to “subdomain” (i typed subdirectory)
How can I move the image folder to a subdomain?

Thanks

August 20, 2013 at 4:40 pm #26776

There are no special instructions for Shoppica to use subdomain for images. You can just search how to do it for a regular opencart site.

Regards,
ThemeBurn team

August 26, 2013 at 10:39 am #26942
Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.