1
deka87
URL changer
  • 2008/5/15 11:56

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


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

2
kurak_bu
Re: URL changer
  • 2008/5/15 12:25

  • kurak_bu

  • Quite a regular

  • Posts: 342

  • Since: 2005/9/5 1



3
kris_fr
Re: URL changer
  • 2008/5/15 18:51

  • kris_fr

  • Theme Designer

  • Posts: 1009

  • Since: 2005/12/31



4
Dona_Brasil
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!

5
Dona_Brasil
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.

6
kris_fr
Re: URL changer
  • 2008/5/15 22:19

  • kris_fr

  • Theme Designer

  • Posts: 1009

  • Since: 2005/12/31


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

7
Dona_Brasil
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??

8
deka87
Re: URL changer
  • 2008/5/16 10:41

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


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

9
Dona_Brasil
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.

10
kris_fr
Re: URL changer
  • 2008/5/17 6:03

  • kris_fr

  • Theme Designer

  • Posts: 1009

  • Since: 2005/12/31


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.

Login

Who's Online

283 user(s) are online (148 user(s) are browsing Support Forums)


Members: 0


Guests: 283


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