Web Hosting Reviews for Affiliate Marketers

Unlimited Shared hosting & Unlimited Disk Space from $5.95 - Dreamhost
Solid Managed VPS with 4 IP's from $60 - Liquid Web
Lightning Fast Dedicated Servers & 1GB RAM from $149 - Liquid Web
#1 Domain Registration with WHOIS Privacy - Just $9.95

The Dreamhost web hosting thread below was started by on 2010-06-18 21:20:25:

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 Code: 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/  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

Join in on the original post at the Dreamhost Forum, Sign up for Dreamhost or view our Dream Host Review.

Related Web Host Reviews


Close
E-mail It