2020-04-25, 18:55:29
(This post was last modified: 2020-04-25, 18:56:11 by Hypertexter.)
Hi,
for testing purposes, I copied my existing GS installation into a subdirectory of the same server.
Now I would like to protect that whole subdirectory from search engines and from curious people with a password.
I tried it with .htaccess entry and htpasswd file, but when I do so, and then try to call the adress "www.domain.de/subdirectory" in the browser, I always get a "Sorry! page does not exist any more" page - instead of a password question.
I tried this entry in the .htaccess file of the subdirectory: (at the beginning)
and a corresponding .htpasswd file with username and encrypted password in it.
What did I do wrong?
Thank you,
Hypertexter
for testing purposes, I copied my existing GS installation into a subdirectory of the same server.
Now I would like to protect that whole subdirectory from search engines and from curious people with a password.
I tried it with .htaccess entry and htpasswd file, but when I do so, and then try to call the adress "www.domain.de/subdirectory" in the browser, I always get a "Sorry! page does not exist any more" page - instead of a password question.
I tried this entry in the .htaccess file of the subdirectory: (at the beginning)
Code:
AuthType Basic
AuthName "Password please"
AuthUserFile "/home/user/public_html/subdirectory/pwpath/.htpasswd"
Require valid-user
and a corresponding .htpasswd file with username and encrypted password in it.
What did I do wrong?
Thank you,
Hypertexter