I'm in need of an SEO friendly URL for something small.
The current url looks like mysite.com/ny.php?c=[COUNTY]&t=23
With 'c' being a county name, and 't' being the id number of a town.
I found this solution in a previous question:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^blog\/([0-9]+)\/.*$ /blog.php?post=$1 [L]
</IfModule>
Which results in /blog/10/any-old-bit-of-text/
from /blog.php?post=10
How could I use something like that, but also have the county in it.
So mysite.com/ny.php?c=[COUNTY]&t=23
would become mysite.com/ny/[COUNTY]/23/town-name
?