Forums / Cotonti / Support / URL Rewrite

Problems selecting the right Cat

urlkiller
#25375 2010-07-28 01:02
Hi there here is my current htaccess:

# Rewrite engine options
Options FollowSymLinks -Indexes
RewriteEngine On
# Server-relative path to creations:
RewriteBase "/"
RewriteRule ^(datas|images|js|skins)/(.*)$ $1/$2 [QSA,NC,NE,L]
RewriteRule ^rss/([^/&?#]+)(.*)$ rss.php?c=$1$2 [QSA,NC,NE,L]
RewriteRule ^message/([^/&?#]+)(.*)$ message.php?msg=$1$2 [QSA,NC,NE,L]
RewriteRule ^(Neuigkeiten|Erfolge|Community)/([a-z-]+)/([a-z-]+)/([a0-9]+)$ page.php?id=$4 [QSA,NC,NE,L]
RewriteRule ^(Neuigkeiten|Erfolge|Community)/([a-z-]+)/([0-9]+)$ page.php?id=$3 [QSA,NC,NE,L]
RewriteRule ^(Neuigkeiten|Erfolge|Community)/([0-9]+)$ page.php?id=$2 [QSA,NC,NE,L]
RewriteRule ^(Neuigkeiten|Erfolge|Community)/([a-z-]+)/([a-z-]+)/([a-zA-Z0-9-_]+)$ page.php?al=$4 [QSA,NC,NE,L]
RewriteRule ^(Neuigkeiten|Erfolge|Community)/([a-z-]+)/([a-zA-Z0-9-_]+)$ page.php?al=$3 [QSA,NC,NE,L]
RewriteRule ^(Neuigkeiten|Erfolge|Community)/([a-zA-Z0-9-_]+)$ page.php?al=$2 [QSA,NC,NE,L]
RewriteRule ^(Neuigkeiten|Erfolge|Community)/$ list.php?c=$1 [QSA,NC,NE,L]
RewriteRule ^(Neuigkeiten|Erfolge|Community)/([a-z-]+)/$ list.php?c=$2 [QSA,NC,NE,L]
RewriteRule ^(Neuigkeiten|Erfolge|Community)/([a-z-]+)/([a-z-]+)/$ list.php?c=$3 [QSA,NC,NE,L]


the problem iam encoutnering is that when i add/edit pages because the category wont get handed over to the add/edit url link.

is there maybe any easy workaround there?

Added 6 days later:

bump!
URL shortener: <a href="http://bbm.li/!7AD5C7">http://bbm.li/!7AD5C7</a>
This post was edited by urlkiller (2010-08-03 16:00, 13 years ago)