Page 1 of 1

mod_rewrite Probleme :-(

Posted: 2003-10-02 14:00
by david04
Hallo!

Ich möchte mir mod_rewrite meine PHP-Dateien in ".html" umwandeln.

Dafür habe ich im root folgende ".htaccess"-Datei

Code: Select all

RewriteEngine on
RewriteRule ^tour(.*).html$ index.php?tour=$1
In der httpd.conf habe ich folgendes hinzugefügt:

Code: Select all

<Directory /home/www/web3/html> 
Options +FollowSymLinks 
</Directory>
Mhmm... klappt aber nicht. Error_log spuckt folgendes aus:

Code: Select all

[Thu Oct  2 13:44:01 2003] [error] [client 217.4.145.217] Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: /home/www/web3/html/test2/live/tour
Was nun???

DaviD

Re: mod_rewrite Probleme :-(

Posted: 2003-10-02 15:01
by dodolin
Ich möchte mir mod_rewrite meine PHP-Dateien in ".html" umwandeln.
Wenn das global gelten soll, warum machst du das nicht in der httpd.conf? Ist doch viel performanter als in .htaccess...
Dafür habe ich im root folgende ".htaccess"-Datei
Was ist "root"?

Re: mod_rewrite Probleme :-(

Posted: 2003-10-02 15:26
by [nix]pepe
dodolin wrote: Was ist "root"?
ich denke mal er meint den documentroot

Re: mod_rewrite Probleme :-(

Posted: 2003-10-02 16:05
by david04
Hallo!

Da hab ich mich wohl nicht richtig ausgedrückt:

z.B. soll aus index.php?tour=1 -> /tour/1.html werden

ja, ich meinte den doc-root

Re: mod_rewrite Probleme :-(

Posted: 2003-10-02 17:30
by steffz
Die Fehlermeldung sagt's doch. Er will die Optionen FollowSymLinks und/oder SymLinksIfOwnerMatch.

Re: mod_rewrite Probleme :-(

Posted: 2003-10-02 22:11
by dodolin
ich denke mal er meint den documentroot
Soweit war ich auch schon. Ich wollte wissen, welches Verzeichnis das ist.