Hello i am having a issue with htaccess mod_rewrite, maybe someone here could point in the the right direction.
my site has 1 main file [index.php] all the navigation is done by passing vars in the url string eg
index.php?page=about
this is working ok with my .htaccess [below]
domain.com/about
some of the pages have a second variable eg
index.php?page=event&eventID=42
this works too with the .htaccess below
domain.com/event/42
my problem is that I have other other pages that require vars too eg
index.php?page=news&newsID=4 domain.com/news/42
index.php?page=map&venueID=4 domain.com/map/42
Is it possible to do this ?
Thanks in advance
.k
.htaccess
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^([^/\.]+)/*$ /index.php?page=$1 [L]
RewriteRule ^([^/\.]+)/*([^/\.]+)/*$ /index.php?page=$1&eventType=$2 [L]