ne ganze dumme Frage vorneweg, wie starte ich den Apache Server neu? Einfach auf "Refresh" klicken?
Ich habe folgende Änderungen in meiner httpd.conf datei vorgenommen, damit das Modul mod_rewrite aktiviert wird:
- Code: Select all
<Directory />
Options FollowSymLinks
AllowOverride FileInfo
</Directory>
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
# "C:/xampp/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "C:/xampp/cgi-bin">
AllowOverride All
Options None
Order allow,deny
Allow from all
</Directory>
LoadModule rewrite_module modules/mod_rewrite.so
Das Modul müsste also schon aktiviert sein, aber trotzdem erhalte ich mit meiner htaccess Datei einen 500 Serverfehler:
Serverfehler!
Die Anfrage kann nicht beantwortet werden, da im Server ein interner Fehler aufgetreten ist. Der Server ist entweder überlastet oder ein Fehler in einem CGI-Skript ist aufgetreten.
Sofern Sie dies für eine Fehlfunktion des Servers halten, informieren Sie bitte den Webmaster hierüber.
Error 500
localhost
07/14/08 12:15:47
Apache/2.2.9 (Win32) DAV/2 mod_ssl/2.2.9 OpenSSL/0.9.8h mod_autoindex_color PHP/5.2.6
Und im Error Log steht:
[Mon Jul 14 12:05:50 2008] [alert] [client 127.0.0.1] C:/xampp/htdocs/test/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
Meine htaccess Datei fängt so an:
ErrorDocument 404 /indexx.php?page=tools/errorimage
ErrorDocument 403 /indexx.php?page=tools/errorimage
RewriteEngine on
Hier sind die Rewrite Befehle.
Was ist bloß der Fehler?
Vielen Dank im Voraus!