473,808 Members | 2,745 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using redirect for a folder/directory

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?
--
Thanks in advance,

sck10
Jul 11 '06 #1
5 2963

Użytkownik "sck10" <sc***@online.n ospamnapisał w wiadomo¶ci
news:Oj******** ******@TK2MSFTN GP05.phx.gbl...
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)
--
JS
BRE Bank Dev Team, Poland
Jul 11 '06 #2
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 (wa****@online. microsoft.com, 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.

Jul 12 '06 #3
Thanks Jacek,
"Jacek Stawicki" <js*****@gazeta .plwrote in message
news:e9******** **@inews.gazeta .pl...
>
Użytkownik "sck10" <sc***@online.n ospamnapisał w wiadomo¶ci
news:Oj******** ******@TK2MSFTN GP05.phx.gbl...
>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)
--
JS
BRE Bank Dev Team, Poland

Jul 12 '06 #4
Thanks Walter,
"Walter Wang [MSFT]" <wa****@online. microsoft.comwr ote in message
news:8n******** ******@TK2MSFTN GXA01.phx.gbl.. .
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 (wa****@online. microsoft.com, 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.

Jul 12 '06 #5
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 (wa****@online. microsoft.com, 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.

Jul 13 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
1891
by: Doug | last post by:
Is there a way to insert code, in a php file, to redirect the location of the Apache DocumentRoot to another directory? I have looked all over the place for something like this. Thx ahead, Doug Eilertson
6
4453
by: Tim Stokes | last post by:
Hi all, I want to do a similar action to response.redirect ("file.htm"). But the file.htm contains some sensitive data. I have placed file.htm in a folder in the InetPub (d:\inetpub\privateroot\file.htm) so that it is not accessible by a simple HTTP request. An asp login script will be used, and then once the user is verified the page should redirect to d:\inetpub\privateroot\file.htm. But obviously I cannot use response.redirect...
7
1709
by: Ron Gibson | last post by:
Lets say I have a folder members/3/ in this folder are images I have a login page that connects to a database to retrieve user info. After login the user is directed to a page that lists the files in the above directory. Now lets say some other user goes to the directory and types in members/3/image1.jpg he/she will now see the image. How can I stop this
3
3015
by: Stu Lock | last post by:
Hi, Is there a way of requiring a log in for individual asp.net pages rather than securing a entire directory. I have a web app where there are 100+ pages but only 2 need to be password protected. I am currently using forms authentication to block the entire folder: <authentication mode="Forms"> <forms name=".MYCOOKIE" loginUrl="login.aspx"
4
3718
by: Dot net work | last post by:
I have noticed that this: Response.Redirect("/MyLocalDirectory/MyPage.aspx") seems to be a lot quicker than this: Response.Redirect(sDirectoryString & "MyPage.aspx") In local development mode, I need to have sDirectoryString equal to my
0
1449
by: Grzegorz Kaczor | last post by:
Hello, I have an ASP.NET application in my website in virtual folder A. This folder contains the application itself. I also have a data virtual directory B which contains data that can be seen by authenticated users. I've implemented forms authentication (with application in folder A) in a standard way. I've also set up a redirection in IIS so that every request concerning folder B (for example GET /B/a/b/c) is redirected to...
3
2778
by: Mr Ideas Man | last post by:
Hi all, I have a sub directory in an appication i have written. In my web config i have set the security like so. <authentication mode="Forms"> <forms loginUrl="LoginUrl"> </authentication> <authorization>
3
5292
by: MS | last post by:
I am looking to get a list of files for a URL reference such as http://localhost/manager/ for a certain search pattern say "*.xls". How do I go about this using VB and what class libraries are best to use. If anyone has any code or can redirect me to a better site then that would be great. Thanks in advance.
2
2590
by: fran7 | last post by:
Hi, I have this select redirect that doesnt work, only the case else works, anyone see whats wrong with it? Its basically to redirect my dynamic pages to their new homes. Any help appreciated. Thanks Richard <%@Language=VBScript%> <% SiteNameURL = Request.ServerVariables("SERVER_NAME")
0
9721
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10633
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10375
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10114
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9198
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7651
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6880
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5548
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3860
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.