mod_rewrite Probleme :-(

Apache, Lighttpd, nginx, Cherokee
Post Reply
david04
Posts: 29
Joined: 2003-06-16 21:09
 

mod_rewrite Probleme :-(

Post 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
dodolin
Posts: 3840
Joined: 2003-01-21 01:59
Location: Sinsheim/Karlsruhe
Contact:
 

Re: mod_rewrite Probleme :-(

Post 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"?
[nix]pepe
Userprojekt
Userprojekt
Posts: 244
Joined: 2003-04-08 19:36
 

Re: mod_rewrite Probleme :-(

Post by [nix]pepe »

dodolin wrote: Was ist "root"?
ich denke mal er meint den documentroot
david04
Posts: 29
Joined: 2003-06-16 21:09
 

Re: mod_rewrite Probleme :-(

Post 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
steffz
Posts: 84
Joined: 2003-04-13 13:07
Location: Hamburg
Contact:
 

Re: mod_rewrite Probleme :-(

Post by steffz »

Die Fehlermeldung sagt's doch. Er will die Optionen FollowSymLinks und/oder SymLinksIfOwnerMatch.
dodolin
Posts: 3840
Joined: 2003-01-21 01:59
Location: Sinsheim/Karlsruhe
Contact:
 

Re: mod_rewrite Probleme :-(

Post by dodolin »

ich denke mal er meint den documentroot
Soweit war ich auch schon. Ich wollte wissen, welches Verzeichnis das ist.
Post Reply