我在 Wordpress Multisite http://yourdomain.com/ http://yourdomain.com/user1/ http://yourdomain.com/user2/ 下托管
了
几个
博客
Wordpress 根安装在
/var/host/yourdomain.com/public/
但是,我想创建一个静态 html 文件夹以包含一些静态 html 文件
http://yourdomain.com/user1/STATIC_FOLDER/css/ *.*
http://yourdomain.com/user1/STATIC_FOLDER/images/ *。 *
http://yourdomain.com/user1/STATIC_FOLDER/index.html
我还创建了一个子文件夹以允许用户直接通过 FTP
/var/host/yourdomain.com/public/user1/STATIC_FOLDER/ *.*
有人可以就htaccess的编辑给我建议吗?或推荐任何插件,或解决方法来启用它?感谢任何帮助谢谢!
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
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]