Redirect Large Number of URLs (HTML Files) to Wordpress

Posted by Chetan on Stack Overflow See other posts from Stack Overflow or by Chetan
Published on 2010-04-28T06:47:44Z Indexed on 2010/04/28 6:53 UTC
Read the original article Hit count: 221

Filed under:
|
|

Hi,

I have over 2000 HTML files that are now in Wordpress blog. I have the URL Map of Old_file.html and new wordpress URL.

I want 301 redirect but don't want to add 2000 lines to htaccess. Can you please suggest how to accomplish this using PHP so that when there is a request for old url, the php script should lookup into the database and redirect(301) to the new URL ?

Thanks.

© Stack Overflow or respective owner

Related posts about php

Related posts about html