wordpress mu + nginx + apache

pepejose nginx-forum at nginx.us
Tue Dec 1 19:33:25 MSK 2009


hi

I have read many forums and tried many settings and I can not get it to work, I need help

I swear I've tried many rules combination and settings

these are the rules for apache for wordpress 2.8.6, but I need to do the rewrite in nginx (proxy reverse, in front of apache)


RewriteEngine On
RewriteBase /

#uploaded files
RewriteRule ^(.*/)?files/$ index.php 
RewriteCond %{REQUEST_URI} !.*wp-content/plugins.*
RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2 

# add a trailing slash to /wp-admin
RewriteCond %{REQUEST_URI} ^.*/wp-admin$
RewriteRule ^(.+)$ $1/ 

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 


which is the translation of these rules for nginx? help PLEASE!! :(

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





More information about the nginx mailing list