ok
[quote=apache]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule . - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]
[/quote]
[quote=nginx]
if (!-e $request_filename) {
rewrite ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 last;
rewrite ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 last;
rewrite ^. index.php last;
}
}
[/quote]
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
([Tue Dec 01 22:22:11 2009] [error] [client 127.0.0.1] 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
thanks!