Using redirect for a folder/directory

S

sck10

Hello,

Using ASP.NET 2.0

I have two websites:
www.OldSite/Old01/
www.NewSite/New01/

I need to redirect everything in the folder "Old01" to "New01". The folder
"Old01" has 15+ web pages in it. Is possible to do the following: redirect
the folder or do I have to put a redirect in every page? Also, can you
redirect the website to another website?
 
J

Jacek Stawicki

I need to redirect everything in the folder "Old01" to "New01". The
folder "Old01" has 15+ web pages in it. Is possible to do the following:
redirect the folder or do I have to put a redirect in every page? Also,
can you redirect the website to another website?

IIS has pretty nice redirect futures. Check properties for particular
web site (in this case Old01directory)
 
W

Walter Wang [MSFT]

Hi,

Thank you for your post.

Based on my understanding, your question is about how to redirect both the
website name a virtual directory name. If I've misunderstood anything,
please feel free to post here.

First, you need to redirect the website by following steps:
1) In IIS management console, open the properties dialog for the website,
switch to tab "Home Directory", you can select option "A redirection to a
URL" and type in your new website name.

Then you need to create a virtual directory in your new website named
"old01", open its properties dialog and redirect to
"http://www.newsite/new01".

You can now visit "http://www.oldsite/old01/*", it should now redirect to
"http://www.newsite/new01/*".

Hope this helps. Please feel free to post here if anything is unclear.

Regards,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 
W

Walter Wang [MSFT]

Hi,

Appreciate your update and response. If you have any other questions or
concerns, please do not hesitate to contact us. It is always our pleasure
to be of assistance.

Have a nice day!

Regards,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top