Seite 1 von 1

URL Design Problem

Verfasst: 17.02.2008 15:13
von grr
Guten Tag

Ich habe folgendes Problem..

Ich leite folgende URL: http://www.xxxx.xx/profil/user30 auf http://www.xxxx.xx/index.php?L=users.profile&id=30 um. Dies funktioniert auch problemlos.

Dieses habe ich so gelöst:

Code: Alles auswählen

RewriteRule ^profil/([a-zA-Z0-9]+)$ /index.php?L=users.profile&id=$1 [L , QSA]



Nun möchte ich noch das die URL: http://www.xxxx.xx/profil/user30/fotos auf http://www.xxxx.xx/index.php?L=pictures.gallery&id=30 weitergeleitet wird.

Und die URL: http://www.xxxx.xx/profil/user30/fotos/ ... ea645.html auf http://www.xxxx.xx/index.php?L=pictures ... 7a0baea645 weitergeleitet wird.

Wie mache ich das nun?

Schon mal vielen dank für die Hilfe...

MFG grr

Verfasst: 17.02.2008 18:11
von Gumbo

Code: Alles auswählen

RewriteRule ^profil/([a-zA-Z0-9]+)/fotos$ /index.php?L=users.gallery&id=$1 [L,QSA]
RewriteRule ^profil/([a-zA-Z0-9]+)/fotos/foto-([^0-9a-f]+)\.html$ /index.php?L=users.profile&id=$1&pid=$2 [L,QSA]