Apache mod rewrite

Apache, Lighttpd, nginx, Cherokee
Post Reply
t.kuhmann
Posts: 82
Joined: 2003-01-14 22:13
Contact:
 

Apache mod rewrite

Post by t.kuhmann »

hallo ich habeb mal eine fraeg ich möchte bei meinem apache das rewrite aktivieren, es sollte folgendermassen ablaufen
/News/ sollte nach /news/ redirectet werden, im URL fenster sollte aber das "neue" verzeichnis kleine geschreiben steht
wenn ich das mit folgendem eintrag mache bleibt jedoch die aufgerufene url drin steheln sollte aber umbenannt werden...

RewriteRule ^/Kontakt(.*) /kontakt/$1 [L]

bitte um hilfe
cosmicboy
Posts: 146
Joined: 2003-02-04 13:28
 

Re: Apache mod rewrite

Post by cosmicboy »

Ersetze doch einfach mal RewriteUrl durch

Code: Select all

RedirectMatch permanent
User avatar
Joe User
Project Manager
Project Manager
Posts: 11191
Joined: 2003-02-27 01:00
Location: Hamburg
Contact:
 

Re: Apache mod rewrite

Post by Joe User »

Code: Select all

RewriteRule ^/Kontakt/(.*) /kontakt/$1 [R=301,L]
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.
t.kuhmann
Posts: 82
Joined: 2003-01-14 22:13
Contact:
 

Re: Apache mod rewrite

Post by t.kuhmann »

Danke für die Antworten,
ich merkte gerade ein :

Code: Select all

RewriteRule ^/Kontakt(.*)$ /kontakt/$1 [R] 
reicht auch
Post Reply