Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x support forum
 Helicon Tech : ISAPI_Rewrite 2.x support forum
Subject Topic: URL Rewrite Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
superspidey999
Newbie
Newbie


Joined: 17 June 2008
Online Status: Offline
Posts: 4
Posted: 17 June 2008 at 11:39am | IP Logged Quote superspidey999

Could someone tell me whats wrong with this rule

RewriteRule /main/enroll\.aspx     http://www.somesite.com/main/enroll.aspx [I,L]

I even tried

RewriteRule /main/enroll\.aspx  http\://www\.somesite\.com/enroll\.aspx [I,L]

I am trying to rewrite the URL here ...,

Please help

 

Back to Top View superspidey999's Profile Search for other posts by superspidey999
 
Lexey
Moderator Group
Moderator Group


Joined: 15 August 2002
Location: Russian Federation
Online Status: Offline
Posts: 7468
Posted: 17 June 2008 at 12:11pm | IP Logged Quote Lexey

RewriteRule /main/enroll\.aspx /enroll.aspx [I,L]
Back to Top View Lexey's Profile Search for other posts by Lexey
 
superspidey999
Newbie
Newbie


Joined: 17 June 2008
Online Status: Offline
Posts: 4
Posted: 17 June 2008 at 4:11pm | IP Logged Quote superspidey999

Thanks a lot Lexey!!!

Sorry I was not able to explain it properly... it works fine for me if it isin the same domain

I want to to redirect domain1/main/enroll.aspx to domain2/enroll.aspx without changing the the domain name

Example domain1/main/enroll.aspx  should redirect to domain2/enroll.aspx  but should still show domain1/main/enroll.aspx 

I really appreciate your help...., you guys are simply awesome  and thanks for the quick response

 

 

 

 

Back to Top View superspidey999's Profile Search for other posts by superspidey999
 
Lexey
Moderator Group
Moderator Group


Joined: 15 August 2002
Location: Russian Federation
Online Status: Offline
Posts: 7468
Posted: 18 June 2008 at 8:37am | IP Logged Quote Lexey

RewriteProxy /main/enroll\.aspx http\://www.somesite.com/enroll.aspx [I]

But all related resources (images, css, etc) will be lost. To proxy them the whole /main/ folder (or its part) should be proxied.

Edited by Lexey - 18 June 2008 at 8:37am
Back to Top View Lexey's Profile Search for other posts by Lexey
 

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