On Tue, Dec 01, 2009 at 11:33:25AM -0500, pepejose wrote:
> 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!! :(
Begin from simple
location / {
try_files $uri /index.php;
}
--
Igor Sysoev
http://sysoev.ru/en/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx