yad4u Rewrite Rules for Subdirectories in Wordpress 3 Multiuser with nginx?


Rewrite Rules for Subdirectories in Wordpress 3 Multiuser with nginx?



My Wordpress 3 multiuser has been enabled, but I don't know how to rewrite the following .htaccess rules for nginx:

RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L]  # uploaded files RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]  # add a trailing slash to /wp-admin RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]  RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule  ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L] RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L] RewriteRule . index.php [L] 

Any hints?


Multiple Custom Permalink Structures in Wordpress

1:

WordPress TEMPLATEPATH
These codes did not work:(I have done any changes with them, although still not job in wordpress3.0.1). How do I add another avatar to the wordpress default ones?
    rewrite ^index\.php$ - last;      # uploaded files     rewrite ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 last;      # add a trailing slash to /wp-admin     rewrite ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ permanent;      if ( -e $request_filename ) {             rewrite ^ - last;             rewrite ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 last;             rewrite ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 last;             rewrite . In WordPress how do you register built-in taxonomies with custom post types in code?index.php last;     } 
I have tried it . WordPress Custom Post Types - Pretty Permalinks I built wordpress3.0.1 in virtualbox with apache2, just finding the .htaccess file was shown below:. I want to learn wordpress from scratch. How can I learn? [closed]
RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L]  RewriteCond %{REQUEST_FILENAME} !-f [OR] RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . How do I stop Wordpress from writing single quotes in the HEAD tag?index.php [L] 
so the nginx rewrite rule should be those:. how to use plus sign instead dashes in wordpress
location ~ / {     rewrite ^index\.php$ - last;     if( !-e $request_filename ) {         rewrite . /index.php last;     } } 
and this works!.


77 out of 100 based on 72 user ratings 387 reviews