WordPress MU rewrite rules
pepejose
nginx-forum at nginx.us
Tue Sep 22 12:52:38 MSD 2009
Hi
I use this rules with apache mod_rewrite
RewriteEngine On
RewriteBase /
#uploaded files
RewriteRule ^(.*/)?files/$ index.php
RewriteRule ^(.*/)?files/(.*) wp-content/blogs.php?file=$2
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
and this on nginx
rewrite ^/(.*/)?files/$ index.php last;
rewrite ^/(.*/)?files/(.*) wp-content/blogs.php?file=$2 last;
if (!-e $request_filename) {
rewrite ^/([_0-9a-zA-Z-]+/)?(wp-.*) $2 last;
rewrite ^/([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 last;
rewrite ^/(.*)$ index.php last;
}
but, dont work fine.... any help?? THANKS!!!!!
Posted at Nginx Forum: http://forum.nginx.org/read.php?2,8334,8334#msg-8334
More information about the nginx
mailing list