【发布时间】:2012-05-12 07:33:11
【问题描述】:
我在 Wordpress 多站点下托管了多个博客
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]
【问题讨论】:
标签: php wordpress .htaccess subdirectory