1
benosman
Yet another (Search Engine) Friendly URL hack
  • 2005/8/12 12:03

  • benosman

  • Just popping in

  • Posts: 2

  • Since: 2005/7/25


I've looked at both Suin's Simplified URLs and Reynaldos ShortURL and while i think they are an improvement on the exisiting XOOPS urls i wanted them to look a little different personally.

I know there are arguments about whether these actually affect search engine indexing at all - especially on google which can index most dynamic pages anyway.

For me i wanted the URLs to look nicer visually, so I have been working on adapting Simplified Urls (in turn based on ShortURL) to have them in this format:

http://www.xoops.url/modulename/filename/key1,value1,key2,value2.html

e.g so a forum post might look like this:

http://www.xoops.url/newbb/viewtopic/topic_id,26288,forum,3.html

Instead of:

http://www.xoops.url/modules/newbb/viewtopic.php?topic_id=26288&forum=3

Urls without parameters look like this :

http://www.xoops.url/news/archive/

instead of

http://www.xoops.url/modules/news/archive.php



I have the first part working - on my test site i can type the new url method and it delivers the appropriate page. I just have to implement the conversion of existing links to the new method. This involves a rewrite of the searching process used in Simplified URLs.

When this is completed i will post here again. However I don't have a public test site available so does any one have one i could use for more complete testing?

Thanks

Benny

2
JamesSAEP
Re: Yet another (Search Engine) Friendly URL hack
  • 2005/8/12 14:22

  • JamesSAEP

  • Just can't stay away

  • Posts: 732

  • Since: 2005/2/28


Sounds interesting... Looking forward to seeing this.

3
frankblack
Re: Yet another (Search Engine) Friendly URL hack
  • 2005/8/12 15:47

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


Even nicer than this

http://www.xoops.url/newbb/viewtopic/topic_id,26288,forum,3.html

would be this

http://www.xoops.url/newbb/viewtopic/topic_id,26288,forum,3-Title-heregoesthetitleofthepost.html

It is quite easy to attach the title to the url, BUT be careful! You have to sanitize the title first from special chars and shorten it to a appropriate length.

4
blindman
Re: Yet another (Search Engine) Friendly URL hack
  • 2005/8/12 18:28

  • blindman

  • Not too shy to talk

  • Posts: 119

  • Since: 2005/6/26


Hello. Glad to hear this but I have a big question about the way to use this kind of hack.
I have tried simplified url on my site but I had to turn it off because of the errors reported by spaw editor (news module) when I wanted to insert images.
It looks like an error in root/class/spaw/class/script.js.php
"An error has occurred in this script on this page
Line:....
Error: syntax error
Char:...
url: http://www.domain.com/class/spaw/dialogs/img_library.php?lang=en&theme=default&request_uri=http%3A//www.domain.com/news-submit.op-edit-storyid- "

Maybe is the modified url or could be from the relative/absolute links or java problems of this hack, but I couldn't find the way to make it works.
Anybody could tell me what I need to changed in spaw editor to eliminate this errors? ( Suin, Reynaldo??)
Is this hack better in this issue?
Don't follow me. I'm lost too.

5
benosman
Re: Yet another (Search Engine) Friendly URL hack
  • 2005/8/13 9:20

  • benosman

  • Just popping in

  • Posts: 2

  • Since: 2005/7/25


I've made some progress with this now - though i won't spend much more time on it until next week.

I have rewritten the link conversion routine to fit my new style and now it appears all the modules i have installed are working ok.

The only issue at the moment is what to do with the url's in forms. I'm going to need to be doing a bit of testing with that to decide the best way forward.

if i can get it to work i might go for a url like:

http://www.xoops.url/search?query=xoops&action=results

Will keep you posted but so far i'm pretty happy with it!

Regarding the errors with simplified url - i haven't got spaw installed so i'm not sure where that error would be. I will probably install it and do some testing using my hack to see if it can be replicated and fixed.

Having the title in the filename would be nice too but i think that is more of an option at a module or even XOOPS level. If there is a parameter called title with a value, my hack will incorporate it. (i need to do more tests with special characters though)

Login

Who's Online

173 user(s) are online (134 user(s) are browsing Support Forums)


Members: 0


Guests: 173


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits