cancel
Showing results for 
Search instead for 
Did you mean: 

HTaccess and re-direct

HTaccess and re-direct

I would very much appreciate help in how to redirect from my multiple store installation (magento CE 2.1) to a coming soon page.

 

My host said :

Regarding your query on keeping the "coming soon" page, there are a couple of ways to do that. The Directory Index in .ht access can be changed to point to the coming soon page. Also a redirect could be added so all users except from a particular IP or IP range will be redirected to the coming soon page.

 

Ive search the forum for info but havent found what I need.

 

Thank you

1 REPLY 1

Re: HTaccess and re-direct

Hi there, around line 33 of the .htaccess file you will find:

 

DirectoryIndex index.php

 

Change this to:

 

DirectoryIndex index.html index.php

Then upload your coming soon page as index.html

 

Once you are ready to go, simply delete index.html 

---
I'm a Magento Developer living in Melbourne, Australia with 4 x Magento certifications Smiley Happy