newtocss
newtocss

Reputation: 17

Merge website and a blog

I have around 400 pages in my website. I also have a Wordpress blog. I would like to integrate the two and make it a single blog.

The existing pages on the website have the URLs like;

www.xyz.com/article1.htm, www.xyz.com/article2.htm, www.xyz.com/article3.htm

When I create a blog, I want these links to be redirected to new links on the blog, like:

www.xyz.com/article1.htm should redirect to www.newblog.wordpress.com/2009/09/09/article1.htm

www.xyz.com/article2.htm should redirect to www.newblog.wordpress.com/2009/09/09/article2.htm

www.xyz.com/article3.htm should redirect to www.newblog.wordpress.com/2009/09/09/article3.htm and so on.

How can I do this in the easiest possible way?

Thanks

Upvotes: 0

Views: 166

Answers (1)

Ólafur Waage
Ólafur Waage

Reputation: 70001

What you could do is create a mod_rewrite rule that would simply cover all the cases of your old articles.

If you name them in a uniform fashion (like you do in the example) Then 1 well written rewrite rule should be able to cover all your old stuff.

Mod Rewrite tutorial

Upvotes: 2

Related Questions