.htaccess Frage
Verfasst: 13.03.2015 17:05
Hallo!
Wollte gern mal Fragen, ob ich die .htaccess richtig gesetzt habe. Viel habe ich schon drüber gelesen, jedoch ob ichs richtig gemacht habe, wollte ich nun euch fragen.
Habe in folgenden Ordnern:
cache
downloads
files
includes
store
Eine .htaccess drin mit folgendem Inhalt:
Im Hauptordner habe ich eine .htaccess drin mit diesem Inhalt:
Und im Ordner ADM noch diese .htaccess:
Und die .htpasswd:
Pfad und Co, wurde natürlich geändert. Nun wie gefragt, stimmt das so?
Danke euch!
Wollte gern mal Fragen, ob ich die .htaccess richtig gesetzt habe. Viel habe ich schon drüber gelesen, jedoch ob ichs richtig gemacht habe, wollte ich nun euch fragen.
Habe in folgenden Ordnern:
cache
downloads
files
includes
store
Eine .htaccess drin mit folgendem Inhalt:
Code: Alles auswählen
<Files *>
Order Allow,Deny
Deny from All
</Files>
Code: Alles auswählen
#
# Uncomment the statement below if you want to make use of
# HTTP authentication and it does not already work.
# This could be required if you are for example using PHP via Apache CGI.
#
#<IfModule mod_rewrite.c>
#RewriteEngine on
#RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#</IfModule>
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>
Code: Alles auswählen
AuthType Basic
AuthName "Restricted Directory"
AuthUserFile /server/pfad/zu/deiner/directory/forum/admin/.htpasswd
require valid-user
Code: Alles auswählen
benutzername:$1$EoI8oqcxdex/a8SFswYxr9tZSVPCD1
Danke euch!