Problems selecting the right Cat
urlkiller |
|
---|---|
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>
|
|
Dit bericht is bewerkt door urlkiller (2010-08-03 16:00, 14 jaren ago) |
donP |
|
---|---|
To avoid problems with add / edit, I simply set the file datas/urltrans.dat like this:
page id=* {page_url_structure()} page al=* {page_url_structure()} list c=* {list_url_structure()} * * {$_area}.php so only page.php?id= and page.php?al= had rewritten, instead the urls to add/edit pages remain un-rewritten and don't generate errors. in [color=#729FCF][b]BLUES[/b][/color] I trust
|
urlkiller |
|
---|---|
i'll give it a try.
but for now i fixed it with adding the url directly "Oh-No" in the tpl ;(( URL shortener: <a href="http://bbm.li/!7AD5C7">http://bbm.li/!7AD5C7</a>
|
GHengeveld |
|
---|---|
Shouldn't you have RewriteBase / (no quotes) ?
|
urlkiller |
|
---|---|
don't know... maybe?
fiddle with that a bit later... works for now... URL shortener: <a href="http://bbm.li/!7AD5C7">http://bbm.li/!7AD5C7</a>
|