![]() Topic awaiting preservation: asp redirect domain problems. (Page 1 of 1) |
|
|---|---|
|
Maniac (V) Inmate From: Washington DC |
posted 03-19-2006 05:11
Hello, code: <html>
<body>
<%@Language=VBScript%>
<%
SiteNameURL = Request.ServerVariables("SERVER_NAME")
Select Case SiteNameURL
Case "woolenwhimsy.com"
Response.Redirect "woolenwhimsy/index.html"
Case "www.woolenwhimsy.com"
Response.Redirect "woolenwhimsy/index.html"
Case Else
Response.Redirect "index.html"
End Select
%>
</body>
</html>
|
|
Maniac (V) Inmate From: Washington DC |
posted 03-19-2006 06:22
I even tried this. code: <html>
<body>
<%@Language=VBScript%>
<%
SiteNameURL = Request.ServerVariables("SERVER_NAME")
Select Case SiteNameURL
Case "woolenwhimsy.com"
Response.Redirect "http://jeff-nolan.com/woolenwhimsy/index.html"
Case "www.woolenwhimsy.com"
Response.Redirect "http://jeff-nolan.com/woolenwhimsy/index.html"
Case Else
Response.Redirect "http://jeff-nolan.com/Index.html"
End Select
%>
</body>
</html> |
|
Maniac (V) Inmate From: Washington DC |
posted 03-19-2006 20:06
I have a javascript running now called woolenwhimsy.js that is temporarily fixing and is loaded from index.html, but I don't really want to use it, unless I have to. |
|
Maniac (V) Inmate From: Washington DC |
posted 03-19-2006 20:06
also, here is a link that talks about what I am trying to do... |
|
Paranoid (IV) Inmate From: Madison, Indiana, USA |
posted 03-20-2006 19:32
|
|
Maniac (V) Inmate From: Washington DC |
posted 03-21-2006 04:39
you make it sound so simple. quote:
|
|
Maniac (V) Inmate From: there...no..there..... |
posted 03-21-2006 13:00
are you wanting the URL to stay www.woolenwhimsy.com and have the content come from http://jeff-nolan.com/woolenwhimsy/index.html ? code: <meta http-equiv="refresh" content="0; URL=http://jeff-nolan.com/woolenwhimsy/index.html" />
|
|
Maniac (V) Inmate From: Washington DC |
posted 03-21-2006 13:35
This is correct CPrompt. I want the URL to stay www.woolenwhimsy.com and have the content come from http://jeff-nolan.com/woolenwhimsy/index.html. I can't use a redirect, because if you go to woolenwhimsy.com it points to the file jeff-nolan.com/index.html by default. Since both domains are under the same webroot. |
|
Paranoid (IV) Inmate From: Madison, Indiana, USA |
posted 03-21-2006 18:11
Gilbert Nolander: code: RewriteEngine On
RewriteCond %{HTTP_HOST} (ww+\.)?woolenwhimsy.com
RewriteCond %{REQUEST_URI} !/woolenwhimsy/
RewriteRule (.*) /woolenwhimsy/$1
|
|
Maniac (V) Inmate From: Washington DC |
posted 03-21-2006 21:07
Crap. Brinkster does not allow .htaccess |
|
Maniac (V) Inmate From: there...no..there..... |
posted 03-22-2006 01:35
quote:
|
|
Maniac (V) Inmate From: Washington DC |
posted 03-23-2006 05:39
yea... maybe so. |