301'ing when source and destination have different file extensions.

Discussion in 'Apache' started by Ajeet, Apr 8, 2011.

  1. #1
    Hi,

    I am trying to merge three WordPress blogs into one. That will mean that I want to 301 redirect

    http://www.OLD.com/FILENAME.html
    to
    http://NEW.com/FILENAME

    Note: in the old structure, there was a .html at the end but not in the new one. I am planning on placing the following line in the .htaccess of OLD.com:

    RedirectMatch permanent ^/?(.*)$ http://NEW.com/$1

    Would that work?
     
    Ajeet, Apr 8, 2011 IP