nginx rewrite rules for website and blog changes
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!