Auto-Redirect

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

Karen Wise

I have changed servers and need to direct people to my
new site. How do I do that in front page?

Thanks

Karen
 
It's tricky, because anyone can go to any page in your web. There are a
couple of ways to do it. The easiest is through IIS Admin. Just set up the
web site to redirect to the new web site. However, if you don't have the
ability to do it through IIS, you can add a META Refresh tag or JavaScript
to every page in the site, which redirects to the new site. Example:

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

With JavaScript:

<script type="text/javascript">
document.location = "http://www.yoursite.com/newpage.htm";
</script>

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.
 
It is also a good idea to add a text box at the top of the page that says:
"This page has moved. You should be redirected in 2 seconds. If that does
not happen please click on the link below. Please update your bookmarks.
<a href="http://www.yoursite.com/newpage.htm">My Newpage</a> "

I've found on some browsers redirect doesn't always work.

Larry

Kevin said:
It's tricky, because anyone can go to any page in your web. There are a
couple of ways to do it. The easiest is through IIS Admin. Just set up the
web site to redirect to the new web site. However, if you don't have the
ability to do it through IIS, you can add a META Refresh tag or JavaScript
to every page in the site, which redirects to the new site. Example:

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

With JavaScript:

<script type="text/javascript">
document.location = "http://www.yoursite.com/newpage.htm";
</script>

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
http://www.takempis.com
Big Things are made up of
Lots of Little Things.

--
For your security and peace of mind ALL emails are automatically
scanned
with the latest Norton AV Virus Definitions. Not that I have any
virus'
but why not be careful! I get virus signature updates regularly!

A Belt and Suspenders are the best security invented!
 
PS
Set the redirect to 10 not 2 or some search engines will drop you
Agree having it done on the server is best
--




| It is also a good idea to add a text box at the top of the page that says:
| "This page has moved. You should be redirected in 2 seconds. If that does
| not happen please click on the link below. Please update your bookmarks.
| <a href="http://www.yoursite.com/newpage.htm">My Newpage</a> "
|
| I've found on some browsers redirect doesn't always work.
|
| Larry
|
| Kevin Spencer wrote:
|
| > It's tricky, because anyone can go to any page in your web. There are a
| > couple of ways to do it. The easiest is through IIS Admin. Just set up the
| > web site to redirect to the new web site. However, if you don't have the
| > ability to do it through IIS, you can add a META Refresh tag or JavaScript
| > to every page in the site, which redirects to the new site. Example:
| >
| > <head>
| > <META HTTP-EQUIV="refresh"
| > content="2;URL=http://www.yoursite.com/newpage.htm">
| > </head>
| >
| > With JavaScript:
| >
| > <script type="text/javascript">
| > document.location = "http://www.yoursite.com/newpage.htm";
| > </script>
| >
| > --
| > HTH,
| >
| > Kevin Spencer
| > Microsoft MVP
| > .Net Developer
| > http://www.takempis.com
| > Big Things are made up of
| > Lots of Little Things.
| >
| > | > > I have changed servers and need to direct people to my
| > > new site. How do I do that in front page?
| > >
| > > Thanks
| > >
| > > Karen
|
| --
| For your security and peace of mind ALL emails are automatically
| scanned
| with the latest Norton AV Virus Definitions. Not that I have any
| virus'
| but why not be careful! I get virus signature updates regularly!
|
| A Belt and Suspenders are the best security invented!
|
|
 
Back
Top