wordpress mu + nginx + apache

pepejose nginx-forum at nginx.us
Wed Dec 2 00:32:29 MSK 2009


RewriteCond %{REQUEST_FILENAME} -f 
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule . - 
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 
RewriteRule . index.php 

  if (!-e $request_filename) {
   rewrite ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 last;
   rewrite ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 last;
   rewrite ^. index.php last;


is this equivalent?

I created a blog named test with the above rules, with http://blogs.domain.com/test/ I get a Bad Request response (Your browser sent a request that this server could not understand.) from apache 
(   Invalid URI in request GET index.php HTTP/1.0
 apache error_log)

 http://blogs.domain.com/test/ only match with  "rewrite ^. index.php last;" not? then... I do not understand how it works in nginx apache and not with those rules


Posted at Nginx Forum: http://forum.nginx.org/read.php?2,27098,27170#msg-27170

More information about the nginx mailing list