Is my .htaccess file correct?

Discussion in 'Apache' started by kestrel, Feb 24, 2006.

  1. #1
    I have recently changed domains, and I want to make sure that my .htaccess file is correctly setup.

    I currenlty have PR2, which has just changed in the update. Sometimes it carries on to my new page, and sometimes it doesnt. I am not sure if this is to do with my .htaccess file, or the fact that the google update hasn't quite completed.

    Here's what I have at the moment

    
    
    redirect 301 / http://www.mynewsite.com/
    
    Code (markup):
    Or should it be

    
    
    redirect 301 /index.html http://www.mynewsite.com/
    
    Code (markup):
    Or even
    
    redirect 301 http://www.myoldsite.com/ http://www.mynewsite.com/
    
    Code (markup):
    Thanks a lot

    Kestrwl
     
    kestrel, Feb 24, 2006 IP