Results 1 to 2 of 2

Thread: Redirect to a New Page or website

  1. #1
    Nicky s's Avatar
    Nicky s is offline Moderator
    Join Date
    Jan 2010
    Location
    UK - GrowaDollar
    Posts
    227

    Default Redirect to a New Page or website

    If you need to redirect visitors to a new page, the following redirect code will enable you to do just that.

    There are many reasons for using a redirect code within your web page. However, the most popular reason is to redirect visitors to a new web page when you've changed the location of the original web page. If you don't, your visitors will receive an error page, which will cause them to leave your web site and probably never return.

    Another good reason to use a redirect code within a web page that has moved is the Search Engines. When you create your web site and upload it to your web server, chances are, your pages will be quickly indexed by the Search Engines, as many Search Engines continually crawl the Internet in search of new web pages. If you don't use a redirect code to redirect your Search Engine visitors to your new web page, you may lose these visitors forever.

    This is why using a redirect code is so important, as it will enable you to redirect your visitors to the web page they were in search of. This will in turn keep you from losing your visitors.

    Place the following code between your HEAD tags. Edit the web address indicated in red to suit your needs. This is the web address your page will be redirected to.

    Code:
    <script language="JavaScript">
    window.location="http://www.yourdomain.com/";
    </script>
    Enjoy

    To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.

  2. #2
    Rocketeer's Avatar
    Rocketeer is offline Member
    Join Date
    Jan 2011
    Location
    USA
    Posts
    30

    Default

    When I do redirects I usually use a 301 Redirect (google it), or with meta tags for something quick and simple:

    This goes between the HEAD tags.
    Code:
    <meta HTTP-EQUIV="REFRESH" content="0; url="http://www.domain.com">

Similar Threads

  1. On Page SEO
    By Silver in forum Search Engine Optimization
    Replies: 2
    Last Post: 12-14-2011, 06:35 AM
  2. On-Page Optimization vs. Off-Page Optimization
    By lamposproject in forum Search Engine Optimization
    Replies: 15
    Last Post: 11-28-2011, 09:06 AM
  3. Simple PHP redirect
    By arsfrun in forum Coding
    Replies: 0
    Last Post: 01-06-2011, 07:15 AM
  4. bookmark Page - Javascript
    By Nicky s in forum Coding
    Replies: 1
    Last Post: 01-06-2011, 05:29 AM
  5. Is a page rank 7 worth $500?
    By Silver in forum General Chat
    Replies: 4
    Last Post: 03-16-2010, 10:02 PM

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
  •