How can I set up .htaccess to look at the last keyword in an URL and use it as a parameter.
For instance, if I have URLs like this:
[php]http://www.mysite.com/coins/half-cents/liberty-cap/1794-P/high-relief/2/
http://www.mysite.com/coins/half-cents/liberty-cap/1794-P/3/
http://www.mysite.com/coins/proof-sets/1937-P/4125/[/php]
The last field in the URL is an (id), which I would like to pass to a target page so the database an locate an exact coin. Notice that there are a different number of fields separated by “/” before the (id) field.
What type of re-write code would I need in order to capture only the last field and pass that info to the next page?
Thanks