Hello,
I have setup a Wordpress MU blog as [b]www.domain.com/blog[/b] on nginx.
Everything works fine except the rewrite rules.
The apache rules for WP MU I was using are:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
</IfModule>
The nginx rules I am using currently are :
location /blog/ {
if (!-e $request_filename) {
rewrite ^.+?(/.*\.php)$ /blog$1 last;
rewrite ^.+?(/wp-.*) /blog$1 last;
rewrite ^ /blog/index.php last;
}
}
Now although the URLs work properly my page design gets screwed up. The sidebar goes to the bottom and design gets weird. On removing these rules the page deisgn is fine but individual posts give a 404 error.
What is wrong with the my nginx rewrite rules?