Jump to content

SOLVED: How to disable the home page


Recommended Posts

Hi there,

 

I'm currently working on my site and want to disable the home page so no-one can see it whilst it's being developed. I know you can enable/disable the storefront in Preferences, but i need to be able to see the site myself but want to stop the public from seeing it.

 

I've tried adding an index.html and index.htm file to the root directory, thinking that it would stop others seeing the site whilst allowing me to go to www.sitename.com/index.php to see the site. Doesn't work though - you see the index.html file, but when you go to the index.php page it automatically forwards you to www.sitename.com and displays the html page again.

 

Any help much appreciated!!

 

Dave

Edited by daverr (see edit history)
Link to comment
Share on other sites

Hi Dave,

You're going in the right direction, you just missed one final step :P.

 

In your Back Office, under Preferences, you'll see an option just below "Enable Shop" that says "Maintenance IP." Just click the button that says "Add my IP address" and then click save at the bottom, and you will still be able to see your site even when it's disabled to everyone else.

 

I hope this helps.

 

-Mike

Link to comment
Share on other sites

Add your IP address in the space provided right below where you enable or disable the shop. (just click add my IP address)

 

actually you need to scroll down and click save...I've made that mistake (over and over) of clicking add my IP...and it didn't do it :)

  • Like 1
Link to comment
Share on other sites

Hi all, thanks for your help, now solved, silly user error (as is usually the case!) (but I had clicked Save :)) .

 

I thought that to get to the site by the IP address that you input the site's IP address in preferences, not your own, and then you'd get to the site by entering the site's IP address in the browser, or in other words it stopped the domain name from resolving.

 

I always find it useful in forum posts if the solution is posted in case anyone else has had the same problem, so even though it's obvious to me now (and so simple!), to view the home page yourself whilst preventing others seeing it:

 

1) In the preferences tab, disable the shop

2) Click the Add my IP address button which will add your computers IP address

3) Scroll down and click Save

 

You can now view your site, but everyone else gets the maintenance page.

 

If you're working from multiple machines/locations, you need to add the ip address for each by following the above steps on each machine/location you user.

 

Thanks all for your help!

Link to comment
Share on other sites

  • 2 months later...

Hi there,

 

I'm currently working on my site and want to disable the home page so no-one can see it whilst it's being developed. I know you can enable/disable the storefront in Preferences, but i need to be able to see the site myself but want to stop the public from seeing it.

 

I've tried adding an index.html and index.htm file to the root directory, thinking that it would stop others seeing the site whilst allowing me to go to www.sitename.com/index.php to see the site. Doesn't work though - you see the index.html file, but when you go to the index.php page it automatically forwards you to www.sitename.com and displays the html page again.

 

Any help much appreciated!!

 

Dave

 

Hi, I'm very new to Prestashop, successfully install prestashop at my hosting live server. same like Dave, trying to disable my shop for editing/ changing content, has did preferences --> Enable shop (NO) and putting my IP in maintenance IP, and click "Save".

But did not sure how to create : "index.html" and "index.htm" file. any one can explain how to create "index.html" and "index.htm"? what content need to write in the index.htm?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...