Quote:
Originally Posted by ChristineP
Hi Robert,
I really want to try your suggestion! I've been back to my cpanel and I can get to the lowest-folder of /store/ and I add the name of the protected directory, though it protects the entire store instead of just the register.php. Do you know if I need to add/change something in the register.php to make this work?
Christine
|
Hi Christine,
I have not tried it on a root-level file, but just make sure that after you applied the
Password Protection via cPanel to your /store/ directory, that you then login to your store's server via FTP and download the new .
htaccess file that was just created.
NOTE: You should first make sure you backup your old .htaccess file in case you want to revert, before applying any password protection in cPanel, because that will overwrite your old .htaccess file.
Once you have downloaded the new .htaccess file, make sure you add the
<Files> lines at the beginning and end of the .htaccess code block to specify which file to assign the Password protection to (i.e. register.php in our example):
<Files register.php>
</Files>
See the full example in my previous post.
If that does not work, then someone else will need to jump in with another idea.
Robert