Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Can I redirect to a default folder
mattwilkinson
#1 Posted : Monday, July 9, 2012 3:31:30 AM(UTC)
Groups: Member
Joined: 1/26/2012(UTC)
Posts: 4
Location: Stoke-on-Trent

All my aspx files are located in a sub folder 'WebForms'.

I want to be able to default all requests for pages to this folder such that they can just type "http://myserver/somepage.aspx" instead of "http://myserver/WebForms/somepage.aspx".

Is this possible?
Ultidev Team
#2 Posted : Monday, July 9, 2012 8:12:24 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Matt,

Physical folder name does not determine the URL by which your application is accessible. When you register the application, simply specify "/" as a virtual directory, and provided that combination of port 80 and virtual folder "/" is not already taken by other applications, you will get exactly the URL you want.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
mattwilkinson
#3 Posted : Monday, July 9, 2012 9:52:08 AM(UTC)
Groups: Member
Joined: 1/26/2012(UTC)
Posts: 4
Location: Stoke-on-Trent

Ultidev Team;3827 wrote:
Matt,

Physical folder name does not determine the URL by which your application is accessible. When you register the application, simply specify "/" as a virtual directory, and provided that combination of port 80 and virtual folder "/" is not already taken by other applications, you will get exactly the URL you want.

Best regards,
UltiDev Team.


The issue is that I want everything to redirect to "/WebForms/" instead of "/" I can't use "/WebForms/" as my virtual directory because the config and global.asax files are located in the root.

I have found a way to do this by redirecting using asp code but I wanted to know if this is possible using the web server
Ultidev Team
#4 Posted : Monday, July 9, 2012 12:45:27 PM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 2,253

Thanks: 28 times
Was thanked: 60 time(s) in 59 post(s)
Hello, Matt.

In this case you would need either to do redirection through the code, or change the folder structure.

Best regards,
UltiDev Team.
Please donate at http://www.ultidev.com/products/Donate.aspx to help us improve our products.
Rss Feed  Atom Feed
Users browsing this topic
Guest (5)
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 can vote in polls in this forum.