-
Redirect
One of my clients has changed their domain name. I want to add an 'index'
page to their old site that will 'redirect' the user to the new site. I
remember doing this before but I've lost the 'code' to do it.
Do you have a sample 'page' that shows how to do the 'redirect'?
Thanks and Cheers,
Larry Rebich
-
Re: Redirect
Found the answer:
<head>
....
<meta http-equiv="Refresh" content="0;URL=http://www.gohere.com">
....
</head>
content=numberofsecondstowait
Cheers,
Larry Rebich
More tips link to:
http://www.buygold.net/tips
Please:
No personal e-mail questions :-)
"Larry Rebich" <lrebich@earthlink.net> wrote in message
news:3bd45efc$1@news.devx.com...
> One of my clients has changed their domain name. I want to add an 'index'
> page to their old site that will 'redirect' the user to the new site. I
> remember doing this before but I've lost the 'code' to do it.
>
> Do you have a sample 'page' that shows how to do the 'redirect'?
>
> Thanks and Cheers,
> Larry Rebich
>
>
>
-
Re: Redirect
In between the <HEAD> and </HEAD> lines, put something like:
<META HTTP-EQUIV="REFRESH" CONTENT="10; url=http://www.newsite.com/">
This will redirect the user to the url specified in 10 seconds.
In the body of the page, put something along the lines of:
The new address is:<BR>
<A HREF="http://www.newsite.com/">http://www.newsite.com/</A>
<BR><BR>
(Your browser should automatically take you there. If it doesn't, click on
the new address above.)
<BR><BR>
Don't forget to update your bookmarks!
<BR><BR>
HTH
--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
"Larry Rebich" <lrebich@earthlink.net> wrote in message
news:3bd45efc$1@news.devx.com...
> One of my clients has changed their domain name. I want to add an 'index'
> page to their old site that will 'redirect' the user to the new site. I
> remember doing this before but I've lost the 'code' to do it.
>
> Do you have a sample 'page' that shows how to do the 'redirect'?
>
> Thanks and Cheers,
> Larry Rebich
>
>
>
-
Re: Redirect
You need to place a meta refresh tag in the head of the index page:
<meta http-equiv="Refresh" content="0;URL=http://www.server.com/newpage.html">
If you want to have a longer delay (to display a message or something) then
change content=0 to content=5 or something (in seconds).
Tim
----
Navicodes: Internet Keywords
www.navicode.com
"Larry Rebich" <lrebich@earthlink.net> wrote:
>One of my clients has changed their domain name. I want to add an 'index'
>page to their old site that will 'redirect' the user to the new site. I
>remember doing this before but I've lost the 'code' to do it.
>
>Do you have a sample 'page' that shows how to do the 'redirect'?
>
>Thanks and Cheers,
>Larry Rebich
>
>
>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks