#1
  1. No Profile Picture
    Contributing User
    SEO Chat Explorer (0 - 99 posts)

    Join Date
    Nov 2007
    Posts
    81
    Rep Power
    7

    .htaccess redirect help


    Hello All

    I have a question about a .htaccess file for 301 redirects. At this time we have about 75 crawl errors and I would like to fix them with 301 redirects. I have to do this myself. I can not use the company that did our website, or I should say, I will not use them.

    So, here is the first few lines of our .htaccess file

    RewriteEngine on
    RewriteBase /
    # RewriteRule (.*).htm$ /.cfm


    this is an example of a 301 redirect currently in our file

    RewriteRule Acer-CB2-Putter_p_3.html /product/acer-cb2-putter-190.cfm [L,R=301]

    Next is a crawl error and url I would like to redirect:

    http://www.crosshairgolf.com/Acer-XP-905-Irons_p_24.html (crawl error)

    Redirect to:

    http://www.crosshairgolf.com/department/golf-iron-set-4.cfm

    So, for me to add this to the .htaccess file would it be as follows

    rewriterule Acer-XP-905-Irons_p_24.html /department/golf-iron-set-4.cfm [L,R=301]

    Does this seem correct to you

    Thank You

    Al
  2. #2
  3. Cool bra. Go with Christ!
    SEO Chat Mastermind (5000+ posts)

    Join Date
    Mar 2004
    Location
    Gloucester (South West UK).
    Posts
    5,944
    Rep Power
    1215
    Originally Posted by agmccall
    Hello All

    I have a question about a .htaccess file for 301 redirects. At this time we have about 75 crawl errors and I would like to fix them with 301 redirects. I have to do this myself. I can not use the company that did our website, or I should say, I will not use them.

    So, here is the first few lines of our .htaccess file

    RewriteEngine on
    RewriteBase /
    # RewriteRule (.*).htm$ /.cfm


    this is an example of a 301 redirect currently in our file

    RewriteRule Acer-CB2-Putter_p_3.html /product/acer-cb2-putter-190.cfm [L,R=301]

    Next is a crawl error and url I would like to redirect:

    http://www.crosshairgolf.com/Acer-XP-905-Irons_p_24.html (crawl error)

    Redirect to:

    http://www.crosshairgolf.com/department/golf-iron-set-4.cfm

    So, for me to add this to the .htaccess file would it be as follows

    rewriterule Acer-XP-905-Irons_p_24.html /department/golf-iron-set-4.cfm [L,R=301]

    Does this seem correct to you

    Thank You

    Al
    A regular 301 redirect would be:

    redirect 301 /Acer-XP-905-Irons_p_24.html http://www.crosshairgolf.com/department/golf-iron-set-4.cfm
    ClickyB
    "The quality of the visitor is more important than the volume".. Egol 22nd Feb 2008
    New to SEO/SeoChat?...Click Here
    Canonical Problems?... Click Here
    Forum Rules & Posting Guidelines

Similar Threads

  1. 301 redirect and .htaccess file location questions
    By lilyfok in forum Google Optimization
    Replies: 2
    Last Post: Jan 16th, 2006, 04:55 AM
  2. .htaccess 301 permanent redirect - The plan!
    By martialarm in forum Search Engine Optimization
    Replies: 1
    Last Post: Jul 16th, 2005, 05:54 AM
  3. share: doing redirect with .htaccess
    By Sam Tang in forum Google Optimization
    Replies: 5
    Last Post: Dec 6th, 2004, 04:45 PM
  4. Javascript or .htaccess redirect?
    By vich in forum Web Design, Coding and Programming
    Replies: 1
    Last Post: Jun 26th, 2003, 09:40 AM

IMN logo majestic logo threadwatch logo seochat tools logo