Magento & Wordpress Integration

Magento is a well architectured, open-source e-commerce platform that are widely used these days. It has many professional and flexible functionalities, but one of the lacking features is a blogging tool. Its CMS is suitable to write static pages for websites, not for blogging. But there is another great open-source blogging software that is loved by numerous bloggers, WordPress. Integrating these two tools is not generally a big issue.

There are a couple of ways to integrate Magento e-commerce store with WordPress blog.

- You can install Magento plug-in to integrate WordPress. This extension allows you to manage both the store and the blog on the same interface. However, it seems some users have experienced difficulties to make it work especially when they use a customized / non-default theme. Download WordPress integration plug-in: Magento Extension - Wordpress Integration

- Another way is to install both of them separately and modify .htaccess file(s) so that they won’t have conflicts.

One of the most common fixes of .htaccess related issues is to define RewriteBase in one of the .htaccess files.

Let’s say I’ve already installed my Magento store on ‘http://www.mystore.com’ and now I want to install WordPress blog to ‘http://www.mystore.com/blog/’.

Most likely, I don’t need to modify Magento .htaccess file. But I need to define RewriteBase and change RewriteRule appropriately in WordPress .htaccess file as follows.

# BEGIN WordPress
RewriteEngine On
RewriteBase /blog/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
# END WordPress

2 Comments

  • By Jermaine, June 19, 2009 @ 10:05 am

    Hi. Let’s say I’ve installed WordPress first and now want to install Magento. How could I make this work?

  • By ae, January 20, 2010 @ 12:44 pm

    Of course, the if you devise a new Magento template the output need not be html. It might be slow but you could integrate the two by having wordpress consume the output from Magento.

Leave a comment