.htaccess - Redirect Required

In the past I've used the .htaccess to redirect URLs when I've done site re-writes etc.

I'm in the process of porting my site from HTML to Wordpress.

I have over a thousand articles that will come across, the old URL looks like...

http://www.mysite.com/KB/Article/0000001.htm And the number increments accordingly  up to http://www.mysite.com/KB/Article/0001107.htm

The new site uses permalinks and the articles there will be...
http://www.mysite.com/KB/Article/0000001 to http://www.mysite.com/KB/Article/0001107

SO IDENTICAL but without the .htm on the end!

So Is there a piece a code that I can put on my .htaccess that will redirect all requests from the original URL to the new one without having over a thousand 301 redirects?


Hope that makes sense.

Pete
LVL 58
Pete LongTechnical ConsultantAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ozoCommented:
RewriteEngine On
RewriteBase /
RewriteRule ^KB/Article/(.*).htm  http://www.mysite.com/KB/Article/$1 [L]

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
gheistCommented:
<Location />
 Redirect temp http://newsite/blablabla
</Location>
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Development

From novice to tech pro — start learning today.