85
Hi disky,
Actually, I just wanted the page titles just as you do for articles or news. Such as:
http://www.xray-mag.com/article/159/Ferry_sinks_in_Red_Sea_I assumed faqs could be done the same such as - domain.com/faqs/1/question_title_here.html or
domain.com/faqs/1/question_title_here or domain.com/faqs/category/1/category_title_here
However, if it is not possible to rewrite FAQs this way, I can stay with what I've got. But for my news/articles pages, I am not sure how to get the page titles as you have done because I did not understand the step:
Quote:
Then on every relevant pagetemplate i took the title of a webpage and added it to the URL.
Can you help me by telling me where I can change page templates? How would I add a page title to an url? Would it be in the module templates and where in the template? I mean, is there a common line to look for to change?
Thanks.
Quote:
disky wrote:
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 :)
[size=x-small]Working sites:
XOOPS 2.0.16 PHP 5.2.2, MySQL 5.0.24a-standard-log, Apache/2.0.54 (Unix)
XOOPS 2.2.4, PHP 4.3.10, MySQL 3.23.58, Apache/1.3.33 (Unix)[/size]