Welcome our webmaster and SEO forum
Please enjoy the forum, contribute what you can, and wind up the Moderators!
Results 1 to 3 of 3

Thread: Redirect 301

  1. #1
    Finlay is offline Junior Member
    Join Date
    Aug 2008
    Posts
    5

    Default Redirect 301

    Hi guys
    I must insert in a html site a htaccess file that create a redirect 301 to
    the site home page for every page that gives error 404 (Page not found), but
    without affecting the single redirect 301 already present in the file
    htaccess regarding other subpage moved and renamed in the past.

    The purpose of all of this is not losing the google page rank that can be
    passed trough every bad written back link .

    What do I write in the htaccess file to do this? Do I have to write it
    before or after the existing rules?

    Usually I have only one or two error 404 for months to redirect: I wouldn't have to have a penalty for duplicate pages, isn't it?

    Thank you

  2. #2
    BlueBoden's Avatar
    BlueBoden is offline Member
    Join Date
    Nov 2008
    Posts
    72

    Default

    The format for redirecting pages is (Redirect code old-page.html new-page.html) Example follows:

    Code:
    Redirect 301 /old-page.html http://www.brugbart.com/newpage.html
    The above redirects the "old-page.html" from a root relative point, you can also use absolute paths.

    I would say that you should focus your efforts elseware, giving a 301 redirect instead of 404 on your broken links is a bad idea, the errors are in place for a reason, and they could potientially end up confusing your visitors.

    You can however create some custom error pages, which can be used to help your visitors. Example:
    Code:
    ErrorDocument 404 /404.html
    If you need to know the pages which generates 404, then check your server-log files, or the Google Webmaster Tools.

  3. #3
    Finlay is offline Junior Member
    Join Date
    Aug 2008
    Posts
    5

    Default

    all clear now
    thanks
    bye

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

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
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124