RedirectMatch 301 for just html file

Posted by Lee on Stack Overflow See other posts from Stack Overflow or by Lee
Published on 2010-03-16T11:17:52Z Indexed on 2010/03/16 12:06 UTC
Read the original article Hit count: 424

Filed under:
|

Hey All.

I need to do a mass 301 Redirect for all pages ending with .html for my site. I am looking to move all the old .html files to a sub-folder ir.

RedirectMatch 301 (.*)\.html$ http://www.domain.com/folder/$1.html

When I add this and refresh the browser I get a ton of folder/folder/folder now after the url ie

domain.com/folder//folder/folder/folder.....

Any ideas what could be wrong?

Thanks if you can help

© Stack Overflow or respective owner

Related posts about mod-rewrite

Related posts about 301-redirect