Hide Site from Visitors
<historylink type="back">🠈 Back</historylink> 🠉 FAQS TIPS & TRICKS
There are times when it may be required to hide the site from visitors.
For examples, a new installation which is not yet ready, a test site which is not for public view or an existing live site that requires maintenance.
New installations and test sites can be hidden behind a password wall.
PASSWORD PROTECT
Important - Immediately after installation:
- Password protect the folder/directory to make sure the contents cannot be found by the public or internet search engines.
This can be done in the control panel on some host servers or do it yourself.
- Edit the .htaccess file which will be in the folder/directory where you installed CE Phoenix on the server.
- Copy and paste the following code at the bottom of the file - you need to replace /path/to/ with the root path that you saved during How to Install at step 11 and save.
AuthType Basic AuthName "My Protected Area" AuthUserFile /path/to/.htpasswd Require valid-user
- Create a new text file.
- Open it and click Save as - select All types (*.*) next to file type - type the filename .htpasswd and click Save.
- Go to https://www.htaccesstools.com/htpasswd-generator/
Follow the instructions there i.e. enter a username and password (save these) and it will generate some code similar to this example - don't use this example!
Username:$apr1$OHIaiR2w$n6GlyntvlbKYE4.0veal1
- Copy and paste the code into the .htpasswd file and save.
- Upload the file to the folder/directory.
When you next access the site you will see something like this to sign in:
It is better to inform the public and search engines on existing live sites that are down for maintenance.
Phoenix Cart User Guide, like CE Phoenix Cart, is free to use but is maintained by unpaid volunteers.
All other content is the reserved Intellectual Property and Copyright of phoenixcart.org
