Now how can i write some code in the .htaccess which will make this to:
items/1
This looks a lot better i think, and plus i will need the ID. Would i need to write 12 lines of code in the .htaccess file? I can see a problem with this, as in the admin section eventually i will add more categories, so i don’t want to have to keep adding more lines in the .htaccess if you know what i mean?
BTW, codegirl86 asked a good question late last night about forcing port 80 causing browser warnings so I’ve updated that mod_rewrite tutorial.
BM,
You forgot the key for ID’s value.
Billy,
PLEASE think of mod_rewrite as redirecting TO the old format from your new format. That will make it easier to get your head around the regex and redirection of your mod_rewrite statements.