This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: Rewrite Redirect Rule
Author
Message |
3plains
Newbie


Joined: 07 January 2007
Location: United States
Posts: 14
Posted: 22 February 2011 at 7:04am

I need a rule to move or redirect this domain so users with the old URL, get pointed to the new URL, where "12345" is the ID.

OLD URL: http://www.thisdomain.com/project/agreement.cfm?id=12345

to

NEW URL: https://secure.thisdomain.com/project/agreement.cfm?id=12345
Back to Top Visit 3plains's Homepage
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 22 February 2011 at 7:09am

It should be like this:

[ISAPI_Rewrite]
RewriteCond %HTTPS off
RewriteCond Host: www\.thisdomain\.com
RewriteRule /project/agreement\.cfm\?id=(\d+) https\://secure.thisdomain.com/project/agreement.cfm\?id=$1 [I,RP]

__________________
Regards,
Anton
Back to Top
 
3plains
Newbie


Joined: 07 January 2007
Location: United States
Posts: 14
Posted: 22 February 2011 at 8:33am

Worked great. Thanks.
Back to Top Visit 3plains's Homepage
 

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

Printable version Printable version
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum