Post by Cleo » Wed May 29, 2019 10:59 pm

Hello,
I have multistore in public_html and I added another store in a sub folder a separate new install
So I have public_html/oc-multistore (all oc files are in public_html)

and public_html/my-new-store (all the oc files for that store are in that sub folder) it's a stand alone not part of multistore

My question is: Do I need to put another .htaccess in that folder or the one in public_html is enough??
Also for the site/store I have an extension for which I need to add some rules in the .htaccess

Code: Select all

# Add this to file .htaccess
# You modify path gallery Your use path
RewriteRule gallery/$ /index.php?route=line/gallery [L]
RewriteRule gallery$ /index.php?route=line/gallery [L]
RewriteRule gallery/([^/]*)\.html$ /index.php?route=line/gallery&album=$1 [L]

#RewriteRule gallery/$ /index.php?route=information/gallery [L]
#RewriteRule gallery$ /index.php?route=information/gallery [L]
#RewriteRule gallery/([^/]*)\.html$ /index.php?route=information/gallery&album=$1 [L]

#RewriteRule gallery/$ /index.php?route=product/gallery [L]
#RewriteRule gallery$ /index.php?route=product/gallery [L]
#RewriteRule gallery/([^/]*)\.html$ /index.php?route=product/gallery&album=$1 [L]

#These lines are Oxy theme to english language:
#RewriteRule en/gallery/$ /index.php?route=product/gallery [L]
#RewriteRule en/gallery$ /index.php?route=product/gallery [L]
#RewriteRule en/gallery/([^/]*)\.html$ /index.php?route=product/gallery&album=$1 [L]
So if the main .htaccess is covering everything do I add those rules in it or I create a new one in the sub folder only for those rules?

Regards,
Cleo
Last edited by Cleo on Fri May 31, 2019 7:30 am, edited 1 time in total.

Opencart v1.5.4.1 fr/en
Theme: Custom
vqmod-2.6.0
PHP: 7.3 (ea-php73)


User avatar
Active Member

Posts

Joined
Wed Mar 09, 2011 5:19 am

Post by D3MO » Thu May 30, 2019 2:12 pm

if you run a COMPLETELY separate script installation then it has to be 2 httacess if multistore setup so one httacces in main folder

Opencart Expert | voldemaras@gmail.com
Skype - programanija | Gtalk - voldemaras@gmail.com
Extensions for Opencart @ https://www.opencartextensions.eu / or Opencart Marketplace

Need Custom Module? debug third party module or simply have any question related to Opencart? feel free to contact directly for a live chat session:) - INSTANT LIVE CHAT


User avatar
Active Member

Posts

Joined
Mon Apr 04, 2011 6:57 am

Post by Cleo » Thu May 30, 2019 2:20 pm

Hello D3MO,

Thank you very much for the reply.
Does the 2nd one need all the rules like the 1st one?

Code: Select all

RewriteBase / (do I have to put the name of the store here?) 
RewriteCond %{HTTP_HOST} !^www\.
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$

RewriteRule ^(.*) https://www.%{HTTP_HOST}/$1 [R=301,L]
ErrorDocument 404 /error_404.php
RewriteRule ^sitemap.xml$ index.php?route=feed/uksb_sitemaps/all&store=0 [L]
RewriteRule ^download/(.*) /index.php?route=error/not_found [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(?:(?:(\w{2})(?:/|\z))?(?:/|\z)?)?(?:([^?]*))? index.php?_route_=$2&site_language=$1 [L,QSA]
#RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
Regards,

Cleo

Opencart v1.5.4.1 fr/en
Theme: Custom
vqmod-2.6.0
PHP: 7.3 (ea-php73)


User avatar
Active Member

Posts

Joined
Wed Mar 09, 2011 5:19 am

Post by D3MO » Fri May 31, 2019 3:22 am

second shop is mainly the first one:) well it is the very same script only that based on that second shop aca creation you do create database entries with shop id so it acts like a new store with other items the ones are assigned also by store id. skin also loads by store id. so in simple words it is one and the same store but passing to x locations store id to fetch other data

Opencart Expert | voldemaras@gmail.com
Skype - programanija | Gtalk - voldemaras@gmail.com
Extensions for Opencart @ https://www.opencartextensions.eu / or Opencart Marketplace

Need Custom Module? debug third party module or simply have any question related to Opencart? feel free to contact directly for a live chat session:) - INSTANT LIVE CHAT


User avatar
Active Member

Posts

Joined
Mon Apr 04, 2011 6:57 am

Post by Cleo » Fri May 31, 2019 3:36 am

@D3MO

Thank you again for the reply and explanation, really appreciate.

Regards,
Cleo

Opencart v1.5.4.1 fr/en
Theme: Custom
vqmod-2.6.0
PHP: 7.3 (ea-php73)


User avatar
Active Member

Posts

Joined
Wed Mar 09, 2011 5:19 am
Who is online

Users browsing this forum: No registered users and 145 guests