Gossamer Forum
Home : Products : Others : Gossamer Community :

Mod rewrite in community

Quote Reply
Mod rewrite in community
Hi,
what do you think, is mod rewrite in g-community possible and recommendable?
Or am I running in problems with my mod rewrite in g-links?
I just want shorter urls than
http://www.domain.com/cgi-bin/community/community.cgi?do=admin_home
or
http://www.domain.com/cgi-bin/community/community.cgi?do=user_signup

Thanks
Matthias

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] Mod rewrite in community In reply to
Hi,

I wouldn't recommend it, as it would require a LOT of changes. Not only in the templates, but also in the core .pm/.cgi script (which would make upgrades of GComm a real job, as you would have to re-do all the changes each upgrade).

You could do a rewrite like we have on our site:

Code:
^members/?$ /cgi-bin/community/community.cgi [L]

Hope that helps

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Mod rewrite in community In reply to
Andy wrote:
You could do a rewrite like we have on our site:

Code:
^members/?$ /cgi-bin/community/community.cgi [L]

Hi Andy,
what does this line do? Can't see the result on your page?
Matthias

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] Mod rewrite in community In reply to
Hi,

That line would just make http://www.domain.com/members actually be http://www.domain.com/cgi-bin/community/community.cgi

For example, on our site:

http://www.ultranerds.com/login

That is actually calling http://www.ultranerds.com/cgi-bin/community/community.cgi , but doesn't appear that way to anyone else.

Hope that helps.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Mod rewrite in community In reply to
Hi Andy,
just to understand it. Would the following line work too?

Code:
^signup/?$ /cgi-bin/community/community.cgi?do=user_signup [L]

Will then the url
http://www.domain.com/signup/
redirect the users to the signup page?
http://www.domain.com/cgi-bin/community/community.cgi?do=user_signup

Do I need a new .htaccess-file or can I add the line in the g-links .htaccess file?

Thanks
Matthias

Matthias
gpaed.de
Quote Reply
Re: [Matthias70] Mod rewrite in community In reply to
Hi,

Yup, that should work too :)

You can just put it in your existing glinks .htaccess file :)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Mod rewrite in community In reply to
Hi Andy,
there seems something missing, cause the following code is not working?
Im redirected to an error page?

Code:
# community pages rewrite
RewriteRule ^signup/?$ /cgi-bin/community/community.cgi?do=user_signup [L]
RewriteRule ^password/?$ /cgi-bin/community/community.cgi?do=user_lostpw [L]


Do I need, something like this for community? Just to define the ^ before signup and password???
Code:
RewriteRule ^$ /cgi-bin/unterricht/page.cgi?g=index.html [L]
RewriteRule ^/$ /cgi-bin/unterricht/page.cgi?g=index.html [L]
RewriteRule ^index.html$ /cgi-bin/unterricht/page.cgi?g=index.html [L]

Thanks
Matthias

Matthias
gpaed.de

Last edited by:

Matthias70: Aug 22, 2007, 6:33 AM
Quote Reply
Re: [Matthias70] Mod rewrite in community In reply to
Hi,

PM me over your .htaccess file, and I'll have a look for you.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Mod rewrite in community In reply to
Hi,

For anyone interested, the rewrite rule worked fine - it was just in the wrong .htaccess file :)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!