Report this

What is the reason for this report?

nginx rewrite rules for website and blog changes

Posted on June 11, 2013

I previously had my blog urls at http://www.domain.com/category_name/post_name/ it has now moved to http://blog.domain.com/category_name/post_name/

The main website used to be at http://www.domain.com/main/ and it is now simply at the root http://domain.com.

I have separate sites-available conf files for the main site and the blog.

I have searched high and low and cannot find anything that seems to work to redirect the incoming urls?

I’m using Ubuntu 12.04 LTS, nginx version installed is 1.1.19

Any help would be greatly appreciated!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.