6
Bassman
I did lot of customization on my site to achieve 100% SEO urls... but it requires changes to include/common.php file and your module files.
My work
Step 1Replace all your links in a module with identible key for that module and make it as simple html link
example : - News
news.html
news_<categoryname>_<categoryid>.html
news_view_<articleid>.html
Step 2Xoops uses request Url to identify which module user is trying to access and gets a module handler on that. So we need to change that as our new seo ready links wont be having any modules/<modname>/.
Search for this code in include/common.php
if (file_exists('./xoops_version.php')) {
$url_arr = explode('/',strstr($xoopsRequestUri,'/modules/'));
$module_handler =& xoops_gethandler('module');
next to that you need to do some thing like this..
// default behaviour
if(is_array($url_arr) && count($url_arr) > 1) {
$xoopsModule =& $module_handler->getByDirname($url_arr[2]);
} else {
if(strpos($xoopsRequestUri,"news") != false) {
$xoopsModule =& $module_handler->getByDirname("news");
} else if(strpos($xoopsRequestUri,"forums") != false) {
$xoopsModule =& $module_handler->getByDirname("forums");
}
.....
unset($url_arr);
Step 3Prepare your
.htaccess file
RewriteEngine on
RewriteRule ^index.html index.php
RewriteRule ^newshtml /modules/news/index.php
RewriteRule ^news_[A-Za-z]*_([0-9][0-9]*).html /modules/news/index.php?storytopic=$1
RewriteRule ^news_view_([0-9][0-9]*).html /modules/news/article.php?storyid=$1
Thats it and your site will have 100% seo html links
Some of the working examples on my site
http://www.dealwithdeals.com/computers-deals-2.html ( using deals module )
http://www.dealwithdeals.com/latest_deals.html ( using deals module )
http://www.dealwithdeals.com/stores.html ( using stores module )
If any of you guys are interested in this hack lemme know i'll publish steps in detail...
In theory there is no difference between theory and practice but in practice it does...