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: redirect to other port / server Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
ebijs
Newbie
Newbie


Joined: 21 November 2004
Location: Netherlands
Online Status: Offline
Posts: 22
Posted: 21 January 2011 at 4:50am | IP Logged Quote ebijs

Hi,

i need to redirect:

http://server.com:9000/some_stuff_here        and
http://www.server.com:9000/some_stuff_here

to http://sub.server.com:9000/some_stuff_here

Any ideas?
Back to Top View ebijs's Profile Search for other posts by ebijs
 
Anton
Admin Group
Admin Group


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

You can do it with the following config:

[ISAPI_Rewrite]
RewriteCond Host: (?:www\.)?server\.com\:9000
RewriteRule (.*) http\://sub.server.com\:9000$1 [I,RP]

__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 
ebijs
Newbie
Newbie


Joined: 21 November 2004
Location: Netherlands
Online Status: Offline
Posts: 22
Posted: 21 January 2011 at 8:54am | IP Logged Quote ebijs

Thank you Anton.
I need also a version who catch all subdomains.

Something like this:

http://any_sub_domain.server.com:9000/some_stuff_here       
and
http://www.any_sub_domain.server.com:9000/some_stuff_here

Back to Top View ebijs's Profile Search for other posts by ebijs
 
ebijs
Newbie
Newbie


Joined: 21 November 2004
Location: Netherlands
Online Status: Offline
Posts: 22
Posted: 23 January 2011 at 1:21am | IP Logged Quote ebijs

Anton, can you help me out?
Back to Top View ebijs's Profile Search for other posts by ebijs
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Offline
Posts: 10520
Posted: 24 January 2011 at 3:24am | IP Logged Quote Anton

You mean you need to redirect everything to http://sub.server.com:9000?
Then it's like this:

[ISAPI_Rewrite]
RewriteCond Host: (?!sub\.)(.*)server\.com\:9000
RewriteRule (.*) http\://sub.server.com\:9000$1 [I,RP]

__________________
Regards,
Anton
Back to Top View Anton's Profile Search for other posts by Anton
 

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