heb ik gedaan maar werkt niet
voorbeeld
AuthName "ontwerp map"
AuthType Basic
AuthUserFile /customers/jnsforum.nl/httpd.www/ontwerp/.htpasswd
require valid-user
Likes: 0
heb ik gedaan maar werkt niet
voorbeeld
AuthName "ontwerp map"
AuthType Basic
AuthUserFile /customers/jnsforum.nl/httpd.www/ontwerp/.htpasswd
require valid-user
Is dat effectief het juiste pad?
eerst had je het over
www/jnsforum.nl/ontwerp/.htpasswd
en nu staat die jnsforum.nl voor de www. Verder staat er ook httpd.www, moet dat effectief een . zijn of moet het mss een / zijn?
dit is wat one.com aan geeft
You can protect specific parts of your webspace using .htaccess.
Please use the following guide to protect parts of your webspace.
Please follow the instructions below below completing the final step of your .htaccess protection
Open Notepad or any text editor
Copy the text from below and insert into your editor
Save the file as ".htpasswd" (with out "" and with no extension)
Upload the file in to the direcroty you decided to protect in the first step
.htpasswd file
admin:MjrN3kW0eb3B6
Open Notepad or any text editor
Copy the text from below and insert into your editor
Save the file as ".htaccess" (with out "" and with no extension)
Upload the file in to the directory you decided to protect which is the same as the one with your .htpasswd file
htaccess_file
AuthName "ontwerp map"
AuthType Basic
AuthUserFile /customers/jnsforum.nl/jnsforum.nl/httpd.www/ontwerp/.htpasswd
require valid-user
ik snap er ff niks meer van hahahahaha
Je kunt eens deze doen om zeker te weten wat het juiste pad is:
<?php
echo $_SERVER['DOCUMENT_ROOT'];
?>
oke ik zal het proberen
dankje
ik heb nu dit gedaan
AuthUserFile www/jnsforum.nl/ontwerp/.htpasswd
AuthGroupFile /dev/null
AuthName "Ontwerp map"
AuthType Basic
<Limit GET POST>
require valid-user
</Limit>
<?php
echo $_SERVER['DOCUMENT_ROOT'];
?>