Get XOOPS XOOPSXOOPS FAQFAQ ForumsForums NewsNews ThemesThemes ModulesModules
News World of XOOPS Developers Hacks Modules Themes YAXS Archive Submit News

Search

Donat-O-Meter

Make donations with PayPal!
Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $65.00
Net Balance: $61.80
Left to go: $38.20

Donations
studioC  ($25)May-17
Anonymous ($15)May-16
Anonymous ($25)May-4

Learn XOOPS Core

Local Support

Advertisement

XOOPS Code hosted on SourceForge

Cumulus Tag Cloud

2 2.5 2.6 3.0 87 2013 Abuse admin Amazon AntiHarvesting AntiMalUser AntiSpam API Beats billige black Blocks blue Captcha capture Casual cell Checksum Christmas chronolabs content Conversion Debauchosity demo docek download Dresses EC2 editor evden eve facebook floor free herre Honeypot Human IP jQuery kantor klubovi lamps log logger Marquee mobile module modules Monster MyAlbum-p newbb news newsletter online PageRank Password Permissions pink Plugin portal Prevention profile project propose Protector Protocols publisher Rights rmcommon Room sale security Server site SmartClone Smarty Songlist Spam stem Studio tag tags tdmcreate Theme themes upgrade userlog website Whitepaper WSDL XIPS xoops Xortify XPayment ZendFramework

New Users

Registering user

# 136021

dressshop

Welcome to XOOPS!

Archives

News Archives

Simplified URLs Hack

Posted by sim_suin on 2005/1/18 1:15:28 (10735 reads) | Posted on Hacks
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.

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.1

How to Install
1) 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.

Support Forum is HERE
http://www.xoops.org/modules/newbb/vi ... 5&forum=14&post_id=131943


Printer Friendly Page Send this Story to a Friend Create a PDF from the article
Bookmark Me
Bookmark to Google Plus
The comments are owned by the author. We aren't responsible for their content.

I really like the look of this hack, but before I use can I ask...

It is stated that it converts XOOPS URLs into shorter and static ones that can be indexed by search engines. . Do you mean search engines can index the content of your site better as a result? For example, one of my concerns about XOOPS (I love XOOPS but it is just one of 2 concerns I have) is that traditionally I could create a web page called 'lost_dobermans.html', and place it in a folder called 'dobermans' in a subfolder of 'lost dogs'. I'd get good search engine rankings for anyone looking for lost dobermans like that.

With XOOPS however, obviously you lose that.

Now, from what I can gather from this hack, it cuts out stuff like '...\modules\newbb\article....' and shortens it to \article...'. Is that exactly what it does, and if so, how does that benefit the search engine side of things? I appreciate that due to a shorter path it can index better\quicker, but does that actually improve your rankings?

Thanks
Published: 2005/1/18 13:32 • Updated: 2005/1/18 13:32
Ted, from the search engines point of view it's the query string like '?' that prevent some search engines indexing your pages. Some, not all. Google will traverse query strings and also deep URLs. Likewise some other SEs. When I looked into this some while ago, I descovered that there are both technical problems with some SEs traversing query strings, but also some policy decisions. It is estimated that a vast amount of content is lost in the deep web (behind query strings and passworded access) because of this.

I used Reynaldo'd shortURL hack for several months and monitored my stats carefully. ZILCH! I mean, google came and went as per usual and a few others, but no new SEs. Despite correct submission. I also encountered some problems with a few modules because of the hack, so I removed it. It was not worth the hastle. Reynaldo does not appear to support it now.

This new hack may work for you, but I would not be too enthusiastic. Please prove me wrong though!

There is another hack somewhere that puts the page title at the end of the URL, a news hack I think.
Published: 2005/1/18 14:23 • Updated: 2005/1/18 14:23
And I think - best solution will be using pure mod_rewrite rules for this task.
When I'll get correct regexp for XOOPS-URLs (anybody want make such present to me?), I'll finish my rewrite-recipe in seconds
Published: 2005/1/18 14:38 • Updated: 2005/1/18 14:38
LazyBadger, this hack is using mod_rewrite and a lot of regexp. You will have seen that.

Then, what do you mean by pure mod_rewrite. Is this solution not pure?
Published: 2005/1/18 15:09 • Updated: 2005/1/18 15:09
Quote:
this hack is using mod_rewrite and a lot of regexp. You will have seen that.

I saw it, but use rules aren't universal and can fail in some cases
Quote:
Then, what do you mean by pure mod_rewrite.

rewrite directives added to .htaccess and nothing more, not a bit, changed
Quote:

Is this solution not pure?

Nor this, Reynaldo's ShortURL - they require some additional actions to work
Published: 2005/1/18 16:04 • Updated: 2005/1/18 16:05
Ok, that would be great. A generic solution for the whole of Xoops. So you are now looking for one regexp that describes each possible XOOPS url?
Published: 2005/1/19 1:00 • Updated: 2005/1/19 1:00
For those who are interested: read SitePoints Top 10 google Myths Revealed article.

Herko
Published: 2005/1/19 1:34 • Updated: 2005/1/19 1:34
Quote:
So you are now looking for one regexp that describes each possible XOOPS url?
Yes, I suppose, it exist, and 9 suppatterns will be enougth
Published: 2005/1/19 5:44 • Updated: 2005/1/19 5:44
Quote:
For those who are interested
Yes, it's true "first-class" reading, but...
- for me SEF-URL is exercise in mod_rewrite art, and nothing more
- there are other SE, which can different rules (and these search engines can have more weight for some territories of Net)
Published: 2005/1/19 5:47 • Updated: 2005/1/19 5:47
The Link to the download is not correct it goes to your search tool and not the simplified url hack
Published: 2005/8/31 1:55 • Updated: 2005/8/31 1:55
Hi

First of all, thanks a lot for such a nice modules. I have installed on my one site (http://qafaqs.com) and works fine. However, i tried to do it for my 2nd site (http://bengaliguru.com), but i get my start page as news not my default page that I currently using. Is there anything I can do fix it?

Please advice.

Thanks
http://BengaliGuru.Com
http://qafaqs.com
http://MovieMelaUSA.Com
http://RentAbanglaMovie.Com
Published: 2006/1/1 19:25 • Updated: 2006/1/1 19:25
You can download here:

http://www.suin.jp/modules/mydownload ... t-cid-7-lid-33-type-0.asp

Agustín
Published: 2006/1/29 18:20 • Updated: 2006/1/29 18:20
Hello and thx for the modul!

I have a question:

When i apply the module, will all my links change? Like someone links to http://mysite.com/modules/news/index.php?id=1 and i apply the hack, will this URL still work or just the new converted one?

Greets
Published: 2006/4/8 17:06 • Updated: 2006/4/8 17:06
I use simplified url hack for a long time, but right now I just realised that the little java script for add to favorites stopped working.
On a test site without this hack is working OK.
You know the script, that java ..bookmark() and so on.
Also 'Go to top' link isn't working anymore.
Anybody noticed this?
Published: 2007/8/18 16:27 • Updated: 2007/8/18 16:27
This is a nice hack. And I thank you guys for your effort.

But now it needs an update and I would like to suggest for a revision of this hack for SEO purpose.

My suggestion is to make the PAGE TITLE as the URL of the page with this kind of hack I believe it will greatly help the page ranking of XOOPS sites in search engine results.

I believe this can be done, other CMS have already package this feature out of the box.
Published: 2007/8/19 12:24 • Updated: 2007/8/19 12:24
Hi.
You can find hack of Simplified URLs Hack.
http://www.xoops.jp/smartsection-item.itemid-1041.htm

It change "+" to "-" or "_".
download here.
simplified urls hack
http://www.xoops.jp/smartsection-visit.fileid-24.htm
Published: 2007/8/19 15:11 • Updated: 2007/8/19 15:11
Hi!

I have a problem with modules newbb v3.02 and news v1.53 .... clicking on any link, and leaves blank page. Why?

Thank you for your response.

Look here: http: // txmod . woowhosting. com
Published: 2008/5/13 14:35 • Updated: 2008/5/27 4:49
Forgive my English!
The link that I have in previous comment no longer exists because I changed server and I had to disable the simplified_url for problems with other different modules.
The new url is: http://mcdirectory.netsons.org/txmod/
Published: 2008/5/27 4:51 • Updated: 2008/5/27 4:51