I have a dynamically created url:
http://www.mysite.com/?id=1&title=Home (but really the id can be any number up to 999)
So far I have this in my .htaccess:
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^([^_]*)$ /folder/?id=1&title=$1 [L]'
This shortens the URL to www.mysite.com/folder/title. However, I do not know how to modify the RewriteRule (or add a RewriteCond) to allow for the ?id=__ to be any number up to three integers i.e. 1 to 999. There is information displayed on these pages that goes off of the id number as the primary key from the MySQL and it needs to be intact on each page so that the information pulls correctly. Please let me know if this is possible or not.
your question seems incomplete. But I have simple solution.
if you open this URL http://www.mysite.com/folder/title123?id=5 then you will get title123 in
$_GET['title']and 5 in$_GET['id']