I apologize if this has been asked numerous times, all of the reading I've done I can't seem to figure this out.
I'm building a site where the index page loads a template based on the url "index.php?p=pagename". This is working fine, however in some instances I need to pass an id as well "index.php?p=pagename&id=#". Ideally I would like it to look like... /pagename/id or /pagename/id/...
here's what my hatccess file looks like.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /manage/
RewriteRule ^([A-Za-z0-9-]+)/?$ ?p=$1 [NC]
RewriteRule ^([a-zA-Z0-9]+)/([a-zA-Z0-9]+)/?$ index.php?p=$1&id=$2
</IfModule>
Any help would be much appreciated.