xoops forums

deka87

Friend of XOOPS
Posted on: 2008/5/15 11:56
deka87
deka87 (Show more)
Friend of XOOPS
Posts: 1124
Since: 2007/10/5
#1

URL changer

Hi

Is there a module to change URL's make 'em shorter and all? For example, instead of http://www.myxoopssite/modules/catads...make it like http://www.myxoopssite/ads

I am pretty sure that this thread has been discussed before, but when I searched for url change all I got is XOOPS protector and some other non-related threads. So sorry moderators..
Mind anchors

kurak_bu

Quite a regular
Posted on: 2008/5/15 12:25
kurak_bu
kurak_bu (Show more)
Quite a regular
Posts: 342
Since: 2005/9/5 1
#2

Re: URL changer

https://xoops.org/modules/newbb/viewto ... =ASC&type=&mode=0&start=0

kris_fr

Theme Designer
Posted on: 2008/5/15 18:51
kris_fr
kris_fr (Show more)
Theme Designer
Posts: 1009
Since: 2005/12/31
#3

Re: URL changer

Hello

Look this smarty plugin --> http://www.frxoops.org/modules/news/article.php?storyid=1491

@++

Dona_Brasil

Not too shy to talk
Posted on: 2008/5/15 21:15
Dona_Brasil
Dona_Brasil (Show more)
Not too shy to talk
Posts: 153
Since: 2005/10/28
#4

Re: URL changer

Quote:

kris_fr wrote:
Hello

Look this smarty plugin --> http://www.frxoops.org/modules/news/article.php?storyid=1491

@++


Wow. Thanks. You made my day.

The great thing is, contrary to other short URL hacks, that the internal links also seem to be changed and are pointing to the new URL. No redirecting anymore. Well done!

Dona_Brasil

Not too shy to talk
Posted on: 2008/5/15 21:41
Dona_Brasil
Dona_Brasil (Show more)
Not too shy to talk
Posts: 153
Since: 2005/10/28
#5

Re: URL changer

To make it even better, create a 301-redirect in .htaccess from urls like
http://www.93230.fr/modules/tag/view.tag.php?40/ to urls like http://www.93230.fr/tag/view.tag.php?40/ (avoiding duplicate content)

or consider adding this line to robots.txt

Disallow: /modules/


if you don't loose to much linklove from old links.

kris_fr

Theme Designer
Posted on: 2008/5/15 22:19
kris_fr
kris_fr (Show more)
Theme Designer
Posts: 1009
Since: 2005/12/31
#6

Re: URL changer

Also for multilanguage --> http://www.dugris.info/modules/news/article.php?storyid=35&page=1 (refresh in same page)

Dona_Brasil

Not too shy to talk
Posted on: 2008/5/16 7:28
Dona_Brasil
Dona_Brasil (Show more)
Not too shy to talk
Posts: 153
Since: 2005/10/28
#7

Re: URL changer

Quote:

kris_fr wrote:
Also for multilanguage --> http://www.dugris.info/modules/news/article.php?storyid=35&page=1 (refresh in same page)


I don't understand what you mean (ni en fran├žais, ni en anglais).

The reason why I create direct links to pages in another language via the template is that referring by tags screws up my website's search engine ranking. For SEO reasons, I really like to have 1 url per content. If you don't watch out with smartlanguage and xlanguage, it may occur that the same content is available on several URLs, or (even worse), that a single url displays different contents depending on the language settings in a cookie. Search engines don't read cookies, so in the latter case a part of your content will probably not be indexed. For this reason, I really like to control the URL's used in internal linking and that makes the use of tags problematical.

I wonder why you post an xoLanguage plugin in an thread on a URL changer. Does this plugin have a solution for that??

deka87

Friend of XOOPS
Posted on: 2008/5/16 10:41
deka87
deka87 (Show more)
Friend of XOOPS
Posts: 1124
Since: 2007/10/5
#8

Re: URL changer

thank you very much guys. i think first i'll try to do what kris_fr said, but it's in french and it's gonna take time. i'll leave a post when finish changing urls to tell what worked best.
Mind anchors

Dona_Brasil

Not too shy to talk
Posted on: 2008/5/16 22:07
Dona_Brasil
Dona_Brasil (Show more)
Not too shy to talk
Posts: 153
Since: 2005/10/28
#9

Re: URL changer

Quote:

kris_fr wrote:
Also for multilanguage --> http://www.dugris.info/modules/news/article.php?storyid=35&page=1 (refresh in same page)


As there was not much documentation, I had to puzzle a bit. I wrote a small manual:

How to rewrite URLs with the xoRewriteModule in XOOPS

Let me know if anybody has any suggestions for improvement.

kris_fr

Theme Designer
Posted on: 2008/5/17 6:03
kris_fr
kris_fr (Show more)
Theme Designer
Posts: 1009
Since: 2005/12/31
#10

Re: URL changer

Thank's Dona_brasil

for xolanguage plugin :
Quote:
To change language without changing the page in progress.

With arrived of the new theme based on the architecture of morphogenesis, the blocks of the modules (xlanguage and smartlanguage) are very often abandoned with the profit of direct links in the themes.
These direct links in the theme do not make it possible to remain on the current page during a change of language, here thus a plugin smarty which will enable you to change language while remaining on the current page.