xoops forums

baldur1983

Just popping in
Posted on: 2012/9/25 4:11
baldur1983
baldur1983 (Show more)
Just popping in
Posts: 14
Since: 2006/1/15
#1

Shorter URLs

Hi, two questions:

1. Is there any way, hack or module to shorter urls? Example: "myxoops.com/newbb", instead of "myxoops.com/modules/newbb".

2. What must I do to change the name of a module, example: "forums" instead of "newbb"

Many thanks,
Baldur

Mamba

Moderator
Posted on: 2012/9/25 5:16
Mamba
Mamba (Show more)
Moderator
Posts: 10992
Since: 2004/4/23
#2

Re: Shorter URLs

For both cases, use Apache mod_rewrite
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

irmtfan

Module Developer
Posted on: 2012/9/25 9:05
irmtfan
irmtfan (Show more)
Module Developer
Posts: 3419
Since: 2003/12/7
#3

Re: Shorter URLs

Alfred implement SEO URLs in newbb 4.3
you can test it.
demo his website: http://www.simple-xoops.de/forum/
download svn:
http://xoops.svn.sourceforge.net/view ... bb/branches/alfred/newbb/

Also as mamba said you should change the htaccess file inside newbb folder to what you want.

deka87

Friend of XOOPS
Posted on: 2012/9/25 10:52
deka87
deka87 (Show more)
Friend of XOOPS
Posts: 1124
Since: 2007/10/5
#4

Re: Shorter URLs

there is a xoRewriteURL hack that I've been using forever with all xoops versions since xoops 2.2. you can go from site.com/modules/newbb/ to site.com/forums/, from site.com/modules/catads to site.com/ads and so on, it works with any module

playsome

Not too shy to talk
Posted on: 2012/9/25 12:00
playsome
playsome (Show more)
Not too shy to talk
Posts: 197
Since: 2009/4/15
#5

Re: Shorter URLs

Quote:

deka87 wrote:
there is a xoRewriteURL hack that I've been using forever with all xoops versions since xoops 2.2. you can go from site.com/modules/newbb/ to site.com/forums/, from site.com/modules/catads to site.com/ads and so on, it works with any module


Yes, xoRewriteModule hack is one of the best, lets you remove /modules/ part of the URL as well as rename modules. Link to the forum post about it https://xoops.org/modules/newbb/viewto ... at&order=ASC&type=&mode=0

baldur1983

Just popping in
Posted on: 2012/9/26 0:53
baldur1983
baldur1983 (Show more)
Just popping in
Posts: 14
Since: 2006/1/15
#6

Re: Shorter URLs

Hi friends,
Many thanks for your help! I´ll try these solutions: xoRewriteModule hack + htaccess changes.
I think it would be (for the future, of course) a good addon on Xoops to allow users to choose between several permanent links from Control Panel, aka wordpress. What do you think, is possible?
Baldur