Gossamer Forum
Home : Products : Others : Gossamer Community :

Contact Us GT Comm plug-in Rewrite rule

Quote Reply
Contact Us GT Comm plug-in Rewrite rule
Hi

I'm using Andy's contact us plug-in slightly modified to give me a drop list of departments for an end-user to send emails to.

I was wondering how to get the rewrite rules below to work just using one line.

I have :

RewriteRule ^/contactus$ /perl/community.cgi?func=contact$1
RewriteRule ^/contactus/$ /perl/community.cgi?func=contact$1

so that both
www.mysite.com/contactus
and
www.mysite.com/contactus/

are redirected to /perl/community.cgi?func=contact

and I was wondering if there was an option I could use between contactus and $ in the rewrite in order for me to imply either with or without the slash go to /perl/community.cgi?func=contact ?

Thanks John
Significant Media
Quote Reply
Re: [Jag] Contact Us GT Comm plug-in Rewrite rule In reply to
Hi,

Try RewriteRule ^/contactus/?$ /perl/community.cgi?func=contact$1

the question-mark ("?") means "zero or one times."
Quote Reply
Re: [Payooo] Contact Us GT Comm plug-in Rewrite rule In reply to
Hi Payooo,

Thanks that works great !

John
Significant Media
Quote Reply
Re: [Jag] Contact Us GT Comm plug-in Rewrite rule In reply to
Sorry, Payoo beat me =) The /? part should work fine Smile

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!