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

Notification

Icon
Error

New Topic Post Reply
Can I redirect to a default folder
mattwilkinson
#1 Posted : Monday, July 09, 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 09, 2012 8:12:24 AM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 1,871

Thanks: 27 times
Was thanked: 24 time(s) in 23 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 09, 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 09, 2012 12:45:27 PM(UTC)
Ultidev Team

Groups: Administration
Joined: 11/3/2005(UTC)
Posts: 1,871

Thanks: 27 times
Was thanked: 24 time(s) in 23 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.
Quick Reply Show Quick Reply
Rss Feed  Atom Feed
Users browsing this topic
Guest
New Topic Post Reply
Forum Jump  
You can post new topics in this forum.
You can 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.