DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

+ Reply to Thread
Results 1 to 4 of 4

Thread: Redirect

Hybrid View

  1. #1
    Larry Rebich Guest

    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




  2. #2
    Larry Rebich Guest

    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
    >
    >
    >




  3. #3
    Douglas J. Steele Guest

    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
    >
    >
    >




  4. #4
    Tim B Guest

    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
    >
    >
    >



Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


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


Sponsored Links