May. 1st, 2006

laurierobey: (Default)
My friend's husband is attempting something with a website and having a difficult time of it. Anybody have any suggestions?

Here's the e-mail she sent me last week:

Basically he's changing the root directory for a site from www3 to www and taking the old site down. When people go to the old server, he doesn't want to redirect, just have a script that shows a link to the new URL. It's on an IIS server, if that makes a difference.

And the one from today:

He figured out this script to change the root directory, but not for each individual page. So the main page is now redirected but all the pages (like 700 of them) aren’t. I don’t know enough to know why it only works on the root, but the only thing he’s come up with to solve the individual page problem is to do it manually, which would really stink, since like I said there are about 700 pages.



The Website has moved. The URL you have requested can be found here:

<%@Language="VBScript" %>
<%
Dim newURL
Dim capturedQryStrg
capturedQryStrg = "http://" & Request.ServerVariables("SERVER_NAME") & Request.ServerVariables("URL")
newURL = Replace(capturedQryStrg, "3.", ".") %>

<!--Script goes here--> <a href="<% = newURL %>"><%= newUrl %></a>

Please change your bookmarks accordingly.



Anybody have any suggestions for the poor guy?

Profile

laurierobey: (Default)
laurierobey

January 2013

S M T W T F S
  1 2 34 5
6 789101112
13141516171819
20212223242526
2728293031  

Most Popular Tags

Style Credit

  • Style: Caturday - Orange Tabby for Heads Up by momijizuakmori

Expand Cut Tags

No cut tags
Page generated Jul. 20th, 2025 03:07 pm
Powered by Dreamwidth Studios