Nginx Rewrite For Magento/Fishpig integration

I have Magento and WordPress running together via Fishpig integration. Which is fine.

Fishpig requires to use a prefix in your URL to identify it’s WP related (e.g. http:/domain.com/blog/your-page-url).

Read More

What I need is a Nginx rewrite for URLs which won’t have the blog bit.

If I user types

http:/domain.com/your-page-url or 
http:/domain.com/another-page-url?somevar=1

I want to keep the URL like that but internally Nginx would deliver

http:/domain.com/blog/your-page-url
http:/domain.com/blog/another-page-url?somevar=1

Any help would be really appreciated.

Related posts