5
Quote:
Here's what's working:
directory - domain.com/faqs/
category - domain.com/faqs/category/1.html
individual faq - domain.com/faqs/1
But I would like them to be the pagename and category name.
Can someone please help? Can someone point out what I'm doing wrong?
I am not sure i understand what you want.
Do you want to be able to have a URL like:
domain.com/faqs/Mod_rewrite_faq.html
The only way i know (and i am stilla mod_rewrite newbie) would be to have a line in the .htaccess file like this:
WriteRule ^faqs/Mod_rewrite_faq.html$ /modules/smartfaq/faq.php?faqid=117 [L]
if the id for that FAQ is 117
So you have 1 WriteRule per page, but there might be a better way to do this, but i don't know for sure.
It would not wonder me if it would be possible to do it via a MySQL database or something like that, but it is pure speculation.
Hope this helps, else just ask :)