Redirect

  • Thread starter Thread starter Karen Wise
  • Start date Start date
K

Karen Wise

I am changing servers. How do I redirect to the new site
with minimum inconvenience to my visitors?

Thanks,

Karen
 
By changing "servers," I assume you mean changing "hosts"
Your new host should give you new Domain Name Servers
to assign your domain too. After your domain has propagated
through the new servers, visitors will automatically be at
your "new" location. ( usually takes 48 hours to propagate )

hth


--
95isalive
This site is best viewed..................
...............................with a computer

I am changing servers. How do I redirect to the new site
with minimum inconvenience to my visitors?

Thanks,

Karen
 
Hi Karen,

Assuming that you old domain is still there, you can add a META REFRESH tag
to each page that they might browse to, and replace the content in the page
with a message indicating that the site has moved. The META REFRESH tag goes
in the <head> section of the page, and looks like this:

<META HTTP-EQUIV="refresh"
content="5;URL=http://www.yoursite.com/newpage.htm">

The "content" attribute indicates (1) the number of seconds to delay, and
(2) the URL to redirect to. So, you can control how long your message will
be displayed.

A good practice is to include in the message on the page a hyperlink to the
URL being redirected to, in case their browser doesn't support redirects
(extremely rare, but remotely possible). A typical message might read
something like:

This page (or site if you prefer using the same URL and message in all
pages) has moved to (hyperlink). Please update your bookmarks. If your
browser doesn't support redirects, please click here to go to (hyperlink).

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.
 
I've wondered, for search engine and people with JavaScript turned off, if
it wouldn't be better to use:
response.redirect
or
server.transfer
on the default page in the root folder. Of course this would require the
ability to have .asp pages on the server but wouldn't it be better?
 
Response.Redirect is going to essentially do the same thing as a meta
redirect. (Incidentally, a META refresh does not require any scripting.)

Server.Transfer won't actually work in this scenario because the URL is
absolute. A Server.Transfer is also going to have its own drawbacks.
Because a Server.Transfer causes the server to serve page A when page B is
requested, the browser has no knowledge of the new page's URL and history
won't be appropriately updated, etc.

META refresh is probably the best bet.

--
Jim Cheshire
Jimco Add-ins
http://www.jimcoaddins.com
===================================
Co-author of Special Edition
Using Microsoft FrontPage 2003
Order it today!
http://sefp2003.frontpagelink.com
 
Back
Top