regex problem with mod rewrite
Posted: Tue Aug 24, 2004 1:37 am
Okay heres my .htaccess
which works beautifully for the second rule... which basically means...
http://www.domain.com/pagename/434 ==
include($page) and use $id withen the page
but when i use the first rule
http://www.domain.com/post/comments/43
$page will return as //comments and $mode will not be set and $id will be set to 43.... plz help
Code: Select all
RewriteRule ^(.*?)/(articles|comments)/(ї0-9]+)$ /?page=$1&mode=$2&id=$3
RewriteRule ^(.*?)/(ї0-9]+)$ /?page=$1&id=$2http://www.domain.com/pagename/434 ==
include($page) and use $id withen the page
but when i use the first rule
http://www.domain.com/post/comments/43
$page will return as //comments and $mode will not be set and $id will be set to 43.... plz help