Deine .htaccess sollte so aussehn:
PHP-Code:
# Enable mod_rewrite
RewriteEngine On
RewriteBase /
# Block any URI protocol in the query string
RewriteCond %{QUERY_STRING} (ftp|https?):|/etc/ [NC]
RewriteRule .* - [F,L]
# Block any URI protocol in the request
RewriteCond %{REQUEST_URI} (ftp|https?):|/etc/ [NC]
RewriteRule .* - [F,L]
# Rewrite http://domain.tld/ to http´://www.domain.tld/
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{HTTP_HOST} example\.de$ [NC]
RewriteRule ^(.*)$ http://www.example.de/$1 [L,R=301]
Dann sollte dein Apache auch die .htaccess nicht ignorieren, das hatte ich schon.
Und mod_rewrite muss angestellt sein. Kannst du aber ja testen
Lesezeichen