I am building a virtual store with Magento, and I am using the HostGator hosting with the "M" plan, that have support for more than one site, the problem is that Magento is in the root and I have another site inside the folder /example.com.br
, but when I try to access this site via browser:
http://example.com.br
I am redirected to the Magento site:
http://magentosite.com.br/maintenance.html
The htaccess that are on root folder (htaccess of magento) is redirecting to the magento maintenance page http://magentosite.com.br/maintenance.html
, and I need to stay only Magento in maintenance and not the sites that are within certain folders like folder /example.com.br
, /example2.com.br
and etc...
This is the maintenance code I'm using in Magento (that are in Root):
RewriteEngine On
RewriteBase /
# allow my ip to access magento store
RewriteCond %{REMOTE_ADDR} !^177\.18\.228\.58
RewriteCond %{REQUEST_URI} !^/maintenance\.html$
RewriteRule ^(.*)$ https://magentosite.com.br/maintenance.html [R=307,L]
I tryed this solution https://stackoverflow.com/a/6528448/2761794 but doesn't worked for me...