Images in subfolder multistore model

ThemeBurn SupportForumsOpenCart ThemesPavilion OpenCart ThemeImages in subfolder multistore model

This topic has been marked as not resolved.

Hey guys,
For certain reasons I needed to change my multistore to operate in subforlder model (ssl without wildcard and seo issues where the main reasons). I made separate folder for every store and located .htaccess and index.php in each of them. I changed .htaccess in subfolder to look this way:

RewriteBase /terra/
RewriteRule ^image/([^?]*) /image/$1 [L,QSA]
RewriteRule ^catalog/([^?]*) /catalog/$1 [L,QSA]
RewriteRule ^download/([^?]*) /download/$1 [L,QSA]
RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
RewriteRule ^system/download/(.*) index.php?route=error/not_found [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]

This is for /terra subfolder. After operation everything works fine – checkout, cart, multisession. There’s only one problem – images of products shows perfectly fine everywhere except in the product page, where theres no visible image, though there are valid refferalls in the code.

Any suggestions?

You have my credentials, but here are they again:

PS. – I’m on BurnEngine Beta 12 right now

  • This reply was modified 2963 days ago by  PiotrCB.
March 10, 2016 at 5:00 am #45394

After disabling BurnEngine on the particular subfolder-shop and enabling it again it started to work for reason I don’t know (images show everywhere perfectly).

So my question is – is it safe to operate opencart multisite this way? Maybe you have some advises for future usage? Maybe some coding advice? As for now it seems that everything works fine.

March 10, 2016 at 1:53 pm #45396

Honestly, we never tested this way. There is a hint when you create a store in OpenCart:

Don’t use directories to create a new store. You should always point another domain or sub domain to your hosting.

So, we didn’t bother to setup a configuration like yours, though it sounds logical. We don’t see any issues here, especially if it works for you. Will bookmark this post to test this setup in the future.

Regards,
ThemeBurn team

March 14, 2016 at 10:03 am #45494
Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.