This forum has been moved here:
Helicon Tech Community Forum

ISAPI_Rewrite 3.0 (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 3.0
Subject Topic: Advice on Rewrite Rule
Author
Message |
Sherwood
Newbie


Joined: 12 March 2012
Location: United States
Posts: 1
Posted: 12 March 2012 at 1:35pm

My regex experience is fairly limited, and I'm hoping someone can help me with a rewrite rule. 

If someone enters a url in this format:

www.domain.org/coursematerials/x (where x is a variable that can change, and may be made up of letters and numbers; for example, AM12)

I would like it to be rewritten as:

www.domain.org/source/coursematerials/index.cfm?mtg=x

Any advice is much appreciated.

Thanks,
Pam


Back to Top Visit Sherwood's Homepage
 
HeliconA
Admin Group


Joined: 02 March 2012
Posts: 4142
Posted: 13 March 2012 at 6:25am

Hello,

Please, try using the following:

RewriteEngine on
RewriteBase /

RewriteRule ^coursematerials/([^/]+)/?$ /source/coursematerials/index.cfm?mtg=$1 [NC,L]

Regards
Andrew

Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version