Deset said:
With the plugin I use, all the files are arranged into premade categories ie. DJ Spooky UrbanFMTV 21/06/10 would go into the "All Djs", "Spooky", "UrbanFMTV" and "2010" categories.
Then with these categories, they are all in the plugin , not separate pages so I have to manually link to them on the menu (ie. Sets by year - 2007 is http://www.grimesets.com/?category=7). ]
Looking for someone that can help me though to make it into the more user friendly links such as http://www.grimesets.com/year/2007
Im still learning all this PHP stuff so its kinda long trying to get it all to work easily.
Thats quite easy, just use the name of set/artist/date or w/e in the URL instead of an ID to query the databse, also might want to change the $_GET var name but not 100% nessesary(i think)... once you have that so its like "
http://www.grimesets.com/?year=2007" its a simple Mod rewrite. Loads of generators online then you just save the rewrite code into the .htaccess file in root folder.
It will look something like:
RewriteEngine on
RewriteRule (.*)/(.*)/$ /?$1=$2
Where (.*) are the variables, first one ($1) being year.. then the "/" fake directory slash, then the other variable ($2) then the ending slash then a var sign.
Havn't done it in ages but im pretty sure its about correct.
Also atm you have it with set links that dont use the year links so if you just added it in then worked the rewrite script it could be like:
http://www.grimesets.com/year/2007/Chef & Flowdan - Rinse FM 200110/