301 redirect with 301 header code or not

Discussion in 'Apache' started by Keone, Jun 23, 2006.

  1. #1
    Hi,

    I have a question about 301 redirects.
    I would like to redirect several dead pages to my index and however that is no problem I still get a 404 header code when I use

    redirect 301 /component/option,com_bookmarks/Itemid,74/mode,0/catid,5/navstart,0/search,*/ http://www.site.com

    is it wise to get a 301 header code or should I just leave it like this?

    I know Google eventually stops looking for it but yahoo is a bugger when it comes to dead pages they keep on looking for it and I do not want them to think my site is full of dead pages...url's that return 404 codes....

    basicly my question is ... how should I make a redirect that also returns a 301 code?

    Thanks!
     
    Keone, Jun 23, 2006 IP
  2. Keone

    Keone Peon

    Messages:
    232
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    This is my current .htaccess file btw

    any help on where and how to add the rewriterule is appreciated...

    <Limit GET POST>
    order allow,deny
    allow from all
    deny from 206.145.80.235
    </Limit>
    <Limit PUT DELETE>
    order deny,allow
    deny from all
    </Limit>
    # BEGIN mambo
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END mambo
     
    Keone, Jun 23, 2006 IP
  3. Keone

    Keone Peon

    Messages:
    232
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    RedirectMatch permanent /component/.* http://www.site.com

    that worked for me.

    I thought I'd post it since I did not get any replies.
    It might help someone else in the future
     
    Keone, Jul 2, 2006 IP