Hallo zusammen!
Ich habe vor ein paar Tagen Joomla in der aktuellen Version neu installiert für unsere Band-Homepage.
Jetzt ist es so, dass ich gerne eine htaccess-Datei nutzen möchte. Ich hätte gerne, dass der /administrator Ordner Passwort geschützt ist. Alle meine Versuche scheiterten bisher. Bisher war dann immer die komplette Seite gesperrt oder nicht mehr erreichbar.
Daher hoffe ich nun auf Hilfe von hier!
Nachfolgend meine aktuelle htaccess-Datei:
DirectorySlash On
# Komprimierung: deflate/gzip
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
# Header
Header append Vary Accept-Encoding
Header append Vary User-Agent
Header set Connection keep-alive
Header unset ETag
FileETag None
<FilesMatch "\.(htm|html|php)$">
Header append Cache-Control private
#Header set Cache-Control no-store, no-cache, must-revalidate, post-check=0, pre-check=0, private
</FilesMatch>
# Cache control
ExpiresActive On
ExpiresDefault A0
ExpiresByType text/css A2592000
ExpiresByType image/gif A2592000
ExpiresByType image/png A2592000
ExpiresByType image/jpeg A2592000
ExpiresByType image/x-icon A2592000
ExpiresByType text/plain A2592000
ExpiresByType text/javascript A2592000
ExpiresByType application/x-shockwave-flash A2592000
ExpiresByType video/x-flv A2592000
ExpiresByType application/pdf A2592000
# Rewrite Rules
RewriteEngine On
RewriteBase /
# forward non-www to www
RewriteCond %{HTTP_HOST} ^([a-z-]+)\.(com|de|at|org|net|eu)$ [NC]
RewriteRule ^(.*)$ http://www.%1.%2/$1 [R=301,L,QSA]
# forward template.12345.css to css.min.css
RewriteRule ^css/template(-[0-9]+)?.css$ css/template.min.css [NC,L,QSA]
# rewrite url and add trailing slash
RewriteRule ^/?$ index.php?q=index [L,NC,QSA]
RewriteRule ^([a-z0-9\+\/_-]+)([^\/])$ $1$2/ [R=301,L,QSA]
RewriteRule ^([a-z0-9\+\/_-]+)$ index.php?q=$1 [L,NC,QSA]
# custom error documents
ErrorDocument 404 /index.php?q=e404
ErrorDocument 410 /index.php?q=e410
Wie kann ich diese nun so anpassen, wie ich es brauche? Vielen Dank schon mal!