i just created a new wordpress page template that runs some php&mysql scripts inside it and i would like to apply mod rewrite to it's subpages.
for instance i have the following link generated:
http://www.quotist.com/quotes-by-authors.html?letter=D
how can i transform this into something like:
http://www.quotist.com/quotes-by-authors/letter/d/ ?
in my htaccess i have the default code generated by wordpress ...
does anyone know how to achieve that?
I was using this little class help on a recent project.. have to say it worked brilliant.. was written by: Kyle E Gentile
To use this class you must first include the file.
After including the file, you need to create an options array.
this will then allow you to use the url http://www.quotist.com/quotes-by-authors/letter/d/
Marty
Try this:
You'll have to add the following to your .htaccess file:
This won't prettify URLs that don't have all three variables, but that's easy enough to add to this one or simply put in an additional rule if needed.