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
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: Rewrite Redirect Rule Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
3plains
Newbie
Newbie


Joined: 07 January 2007
Location: United States
Online Status: Offline
Posts: 14
Posted: 22 February 2011 at 7:04am | IP Logged Quote 3plains

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 View 3plains's Profile Search for other posts by 3plains Visit 3plains's Homepage
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 22 February 2011 at 7:09am | IP Logged Quote Anton

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 View Anton's Profile Search for other posts by Anton
 
3plains
Newbie
Newbie


Joined: 07 January 2007
Location: United States
Online Status: Offline
Posts: 14
Posted: 22 February 2011 at 8:33am | IP Logged Quote 3plains

Worked great. Thanks.
Back to Top View 3plains's Profile Search for other posts by 3plains Visit 3plains's Homepage
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
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