473,405 Members | 2,187 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Startpage not in root folder

Hy all,

My problem is that my default page is not in the root folder of my
website but in a subfolder called public_pages which is in the root if
my website.

I've tried different approaches but nothing worked.

At the moment i've a page default page in the root which does the
redirect to the public_pages folder, but this is a bit slow.

I also tried it with:
- UrlMapping in the web.config file.
- Server.Transfer, but then my page appears without the pictures

Or is the solution a different configuration on IIS?

Kind regards, Yvonne

Jan 9 '07 #1
2 1126
Not sure why you have to have your main page in a folder other than root,
but one option is to set up HTTP Handlers to take default and return the
correct page. This would occur sooner in the process and should speed things
up a bit.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA
http://gregorybeamer.spaces.live.com

********************************************
Think outside the box!
********************************************
"Yvonne" <le*******@privatezone.chwrote in message
news:11**********************@s80g2000cwa.googlegr oups.com...
Hy all,

My problem is that my default page is not in the root folder of my
website but in a subfolder called public_pages which is in the root if
my website.

I've tried different approaches but nothing worked.

At the moment i've a page default page in the root which does the
redirect to the public_pages folder, but this is a bit slow.

I also tried it with:
- UrlMapping in the web.config file.
- Server.Transfer, but then my page appears without the pictures

Or is the solution a different configuration on IIS?

Kind regards, Yvonne
Jan 9 '07 #2
Hy cowboy ;-),

First the why:
I've also a folder admin_pages. First the 'public' pages where in the
root and only the admin-pages where in a subfolder, but then I
introduced a masterpage for all pages. I always use relativ paths to
pictures, .... You see my problem? I couldn't use the same master
because the pages were not on the same level of the folderhirarchy.
Therefore I moved the public-pages to the folder public_pages.

Can you give me a sample for this HTTP handler? I also seen it, but I'v
not yet understood what the idea is.

The best solution would be one which doesn't need a roundtrip (which I
actually have with the Redirect methode.).

yvonne
Cowboy (Gregory A. Beamer) schrieb:
Not sure why you have to have your main page in a folder other than root,
but one option is to set up HTTP Handlers to take default and return the
correct page. This would occur sooner in the process and should speed things
up a bit.
Jan 9 '07 #3

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

Similar topics

4
by: Jerry | last post by:
I'm having just a bit of trouble wrapping my brain around the task of working with folders that are above the site's root folder. I let users upload photos (.jpg/.gif files) which can...
1
by: John Dalberg | last post by:
I have an asp.net app that is in a folder which is two levels under the website root folder. The website has a login.aspx which is in the root folder. How do I get the relative path to the web...
19
by: Steve Franks | last post by:
I am using VS.NET 2005 beta 2. When I run my project locally using the default ASP.NET Development Web Server it runs using a root address like this: http://localhost:11243/testsite/ However...
2
by: Jeff Brown | last post by:
Hi, I suspect that this isn't possible, but I figured I'd ask. My project has a root namespace, let's say it's "Root", that applies to almost every source file (which is why I've set it as the...
0
by: Carl Gilbert | last post by:
Hi I am trying to get a simple ASP.NET web application to work on my 1&1 (1and1) web space. I managed to get something working a while ago, with thanks to Karl Seguin, but for some unknown...
2
by: news.sbcglobal.net | last post by:
I hope I can explain this well enough to understand. I have a master page that is used by almost all of the pages in my site. On the master page is a table. In one of the cells in this table, I...
2
by: Chris | last post by:
I have a web app which sit in a virtual but is a sub folder of the web tree. I thought if I put the web.config in the virtual it would read from there but it seems to only accept it if the...
3
by: Chris | last post by:
I have created a site with VS2005, using asp.net/c#. When I try to deploy this site to our intranet asp server all of my links that were "~/Folder/Site.aspx" no longer work because when I move it...
3
by: Rick | last post by:
Hi, Our website used to have all pages in the root folder, and the entry page is "Login.aspx". I was asked to move all pages inside a folder named "Aspx" Is it possible to move also the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
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...
0
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,...

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.