I am working on a PHP script that uses clean URIs.
My problem is, that I have one page that first uses no get parameter, then one and at the end two.
The line in the .htaccess
file currently looks like this:
RewriteRule ^birthing-records/([^/]+)/?$ birthing-records.php?url=$1 [L,QSA,NC]
But if I add the second parameter like this:
RewriteRule ^birthing-records/([^/]+)/([^/]+)/?$ birthing-records.php?url=$1&second=$2 [L,QSA,NC]
The script redirects me to the error page.
How do I have to set this up?
Do I need two lines in the .htaccess
for that case?
I would normally solve this by simply calling another page but I would like to keep the exact URIs I am using right now because all of those pages are indexed at Google. I would really appreciate any help.