mod_rewrite funktioniert NICHT obwohl es AKTIVIERT ist!

Irgendwelche Probleme mit XAMPP für Windows? Dann ist hier genau der richtige Ort um nachzufragen.

mod_rewrite funktioniert NICHT obwohl es AKTIVIERT ist!

Postby Yeenah » 14. July 2008 11:27

Hallihallo,

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!
Yeenah
 
Posts: 1
Joined: 14. July 2008 11:19

Postby Wiedmann » 14. July 2008 12:03

wie starte ich den Apache Server neu?

Erst "Stop" dann "Start".
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby Wiedmann » 15. July 2008 19:30

Tolle Antwort,

Wegen? Genau so funktioniert das.

nur die erste Zeile der Frage gelesen ???

Yup. Wie du es selbst schreibst: Vorneweg musst du erstmal wissen wie man den Apache neu startet.
(--> weil funktionieren muss, bevor man den Apache umkonfigurieren kann)
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany


Return to XAMPP für Windows

Who is online

Users browsing this forum: No registered users and 130 guests