This hack
Simplified URLs ,which is based on
ShotURLs released by reynaldo, converts XOOPS URLs into shorter and static ones that can be indexed by search engines.
Search engines like Google do not crawl the URLs which contain parameters, like “…*.php?abc=1&xyz=2….”. In spite of this truth, almost all of URLs in XOOPS include parameters. This hack solves such a problem at once by converting all dynamic URLs into static ones.
Quote:
Quote reynaldo's words;
I've found other hacks that do the same but I didn't like the way the worked because I haven't had good results with urls within deep directorys like:
http://www.domain.com/modules/news/article/1/arg1/arg2
In my experience, some Search Engines (Google for example) didn't like to crawl pages so "deep" within the site.
For this reason, this hack gives you shallow URLs. For example ;
[Default]
http://xoops_site/modules/news/article.php?storyid=1[Converted]
http://xoops_site/news+article.storyid+1.htm[Default]
http://xoops_site/modules/userinfo.php?uid=1[Converted]
http://xoops_site/userinfo.uid+1.html I checked this hack in Xoops2.0.9.X and 2.0.6.
This probably runs in the other versions.
I also checked more than 30 modules so I think it is available for most of the modules. Yet errors must exist in this hack. When you find some bugs or errors, please let me know.
Finally I'm sorry for my poor English and I appreciate reynaldo who developed
ShortURLs.
You can download HERE >>>
Simplified URLs 1.1How to Install1) Modify your loadpages.php.
Set your start module's dir name at line 33.
If you don't set a start module, please set it blank like: $start_module = "";
Set the position of "loadpages.php" at line 38.
2) Upload this two files to your XOOPS root dir:
- loadpages.php
- simplified_url.php
3) Modify your .htaccess file, the one you have in your XOOPS root dir (if any)
and add the contents of the included .htaccess file. If you don't have one, just upload the one I provided.
4) In the XOOPS root dir, there is a file named mainfile.php
Open it and add the following line just after the disclaimer (line 41 for
Xoops 2.09):
include "simplified_url.php";
It must be put under "XOOPS_URL"
ex :
39:define('XOOPS_URL', 'http://localhost/');
40:
41:include "simplified_url.php";
42:
43:define('XOOPS_CHECK_PATH', 0);
5) Save mainfile.php and upload it to your server.