http://www.ultimate-guitar.com/tabs/l/led_zeppelin/stairway_to_heaven_ver4_tab.htm
I can assume the variables getting passed are something like:
?artistLetter=l
?artist=led_zeppelin
?title=stairway_to_heaven
?version=_ver4
?type=_tab
.htm
I can emulate this via mod_rewrite up to the point where they have "stairway_to_heaven_ver4_tab.htm" I don't understand how they are keeping these variables separate without something like a / (forward slash) between them. I also don't know how they tack on a .htm on the end of every URL
here is my .htaccess file (note: I don't care about separating out the artistLetter as ultimate-guitar has done. root.php figures out what do do with the variables)
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^([^/\.]+)/?$ root.php?artist=$1 [L]
RewriteRule ^([^/\.]+)/([^/\.]+)/?$ root.php?artist=$1&title=$2 [L]
</IfModule>
does anyone know how to generate this fake URL and retrieve the variables inside it (title, version, and type) while adding a .htm at the end?
Many thanks guys