问题描述:

I have done the Magento - Wordpress integration through fishpig plugin. The URL of my posts, pages etc have changed now (because fishpig puts additional /blog/ in the URL.

Before integration my wordpress url was like below.

http://www.abcdomain.com/post-name

Now they have changed to like below

http://www.abccomain.com/index.php/blog/post-name

I have removed the index.php through .htaccess, however, I want to remove the blog from the URL as well so that my URLs should remain as they were before the integration.

Is this something which can be done through .htaccess OR through modifying the magento code + .htaccess?

网友答案:

Shaikh has it right. This can be done instantly and automatically by using the Root addon extension for Magento. There isn't any other way to achieve this so Root is your only option.

Simply install the add-on extension in Magento and the /blog/ will be removed from all WordPress URLs automatically. You will then want to change your WordPress 'home' URL so that it no longer contains '/blog'. You can do this by going to Settings > General in the WordPress Admin and removing '/blog' from the second URL on the page.

相关阅读:
Top