PDA

View Full Version : Directory structure


demonwebb
12-14-2005, 06:23 AM
Some of my design colleages build sites with all content in several /sub-directories and only a single default.asp in the top level which has a response.redirect in it to a /sub-directory. This has my alarm bells ringing, but I can't find any information on whether this impacts SE performance. What are people's views on this. Apologies if this has been discussed before.

Rynert
12-14-2005, 08:06 AM
Are they doing a response.redirect as a result of the HTTP Header info?

In other words hosting lots of different websites on the same IP address with a single 'home page' for all URLs.

demonwebb
12-14-2005, 08:16 AM
It might help if I give an example www.buzinet.net (http://www.buzinet.net) - it is done to make site structure easy for us to update. Notice how you get redirected to the /default sub-directory

(on a side note - we do use a single IP to host our client's sites, but not for any kind of spammy purposes, only because we don't own many IP addresses)

Rynert
12-14-2005, 12:23 PM
Hi, that site won't load for me.

I was perhaps not as clear as I could be.

Within IIS on your server do you have just the default website running with a single default.asp page as the 'home page' and does that file read the header information and divert the visitor to the correct subfolder (website) ?

e.g.

if Request.ServerVariables("HTTP_REFERER") = 'domain1.com' then

direct to virtual directory containing files for domain1.com

demonwebb
12-15-2005, 05:22 AM
No, we only redirect to a single site. This is the complete code for the default.asp and it doesn't look for variables.
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<%
response.redirect "default"
%>