1

is there a way to override a Magento store (a store within a magento install, that isnt the primary one)?

I have a html landing page I want to put in place of the store while Im developing it.

Is this possible? What is the best way?

1

You could use a simple rewrite rule in your .htaccess

Eg.

# replace to suit the domain
RewriteCond %{HTTP_HOST} www.example.com 
# change to suit your own IP
RewriteCond %{REMOTE_ADDR} !^x\.x\.x\.x 
RewriteCond %{REQUEST_URI} !^/maintenance\.htm$
RewriteRule ^(.*)$ https://%{HTTP_HOST}/maintenance.htm [R=307,L]
  • That works well, thanks :) The .htaccess file reads the # comment after the HTTP_HOST as an argument however, incase anyone else needs to know this. – Wayners247 Dec 5 '13 at 17:23
  • So ive used the above, and all seems to be ok, however its almost like the site is just ignoring the above? It loads as normal, regardless of file location. – Wayners247 Dec 5 '13 at 18:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.