80
I've almost got it! Close but not quite. I'm trying to rewrite modules/smartfaqs/ to faqs/ so that if it's an faq it would show up as:
mydomain.com/faqs/faqpagetitle.html
and categories would show up as
mydomain.com/faqs/category/category-name/ or /faqs/category/name/ would be fine.
So far I've taken these steps - I did this:
Quote:
So change (please note I have removed opening and closing "<" and ">" from the statements so this renders in HTML, you will need to fix the tags:
From: meta name="keywords" content="<{$xoops_meta_keywords}>" /
To: meta name="keywords" content="<{$xoops_pagetitle}>, <{$xoops_meta_keywords}>" /
From: meta name="description" content="<{$xoops_meta_description}>" /
To: meta name="description" content="<{$xoops_pagetitle}>, <{$xoops_meta_description}>" /
But the next one I did not know how to do. Should I change the templates in each module? If so, where in the template? If only in a theme template, where in that template? I apologize if this should be obvious but I'm totally stumped at the moment.
Quote:
I did this (but wrong I'm sure! see below):
Quote:
And of course the mod_rewrite changes i have mentioned earlier in this thread.
And I changed the line in common php.
It's partially working here though I'm doing it incorrectly. This is what I added to .htaccess:
RewriteEngine On
RewriteBase /
RewriteRule ^faqs/$ /modules/smartfaq/ [L]
RewriteRule ^faqs/category/([0-9]+).html$ /modules/smartfaq/category.php?categoryid=$1 [L]
RewriteRule ^faqs/([0-9]+)$ /modules/smartfaq/faq.php?faqid=$1 [L]
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?
Thanks in advance.
[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]