Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: Virtual directory and subdomain Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
rocky
Newbie
Newbie


Joined: 28 May 2010
Location: Cambodia
Online Status: Offline
Posts: 5
Posted: 13 June 2010 at 11:51pm | IP Logged Quote rocky

Anyone can help, I am using ISAPI Rewrite 2.x on IIS7 and I need to set virtual directory and subdomain

1) Virtual directory for /img-get/ to address www.abc.com/img-get/
I am using shared hosting and there are 2 domains in my hosting plan.

2) Subdomain www.admin.abc.com map to /abc/admin

Appreciate for your quick response.

Rocky

Back to Top View rocky's Profile Search for other posts by rocky Visit rocky's Homepage
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Online
Posts: 10489
Posted: 14 June 2010 at 5:31am | IP Logged Quote Anton

Could you please specify what request you want to make and where it should direct you.
Provide some specific examples.

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


Joined: 28 May 2010
Location: Cambodia
Online Status: Offline
Posts: 5
Posted: 14 June 2010 at 8:34pm | IP Logged Quote rocky

I want to set Virtual directory for http://www.abc.com/img-get/
the physical path is: \\boswinfs04\home\users\web\b2442\whl.user\img-get\ (This directory is stored in non-accessible web directory)

My second question is, I want to create Subdomain call http://admin.abc.com by mapping to physical path \\boswinfs04\home\users\web\b2442\whl.user\abc\admin\

There are 2 domains in my shared hosing (ex.: abc.com and def.com)

If it is not clear, please feel free to contact me.

Rocky
Back to Top View rocky's Profile Search for other posts by rocky Visit rocky's Homepage
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Online
Posts: 10489
Posted: 15 June 2010 at 4:05am | IP Logged Quote Anton

Sorry, but it's still unclear what you want ISAPI_Rewrite to do.
ISAPI_Rewrite doesn't deal with physical paths, only with virtual ones.

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


Joined: 28 May 2010
Location: Cambodia
Online Status: Offline
Posts: 5
Posted: 15 June 2010 at 9:00pm | IP Logged Quote rocky

Hi Anton,

Thanks for your reply.

Can you let me know if we can create virtual directory and subdomain with ISAPI_Rewrite V.2, if so can you give me an example.

Sorry I am a new user of this application.

Awaiting for your quick reply.

Rocky

 

Back to Top View rocky's Profile Search for other posts by rocky Visit rocky's Homepage
 
Anton
Admin Group
Admin Group


Joined: 30 January 2007
Location: Ukraine
Online Status: Online
Posts: 10489
Posted: 16 June 2010 at 5:29am | IP Logged Quote Anton

To achieve the following "Subdomain www.admin.abc.com map to /abc/admin", please try this:

[ISAPI_Rewrite]
RewriteCond Host: www\.([^.]+)\.abc\.com
RewriteRule (.*) /abc/$1$2 [I,L]

And as for "if we can create virtual directory and subdomain with ISAPI_Rewrite V.2", I'm not sure if I get you correctly.
Virtual directories are created in IIS, why do you want ISAPI_Rewrite to do this?

__________________
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