用于Wordpress多站点的htaccess
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了用于Wordpress多站点的htaccess相关的知识,希望对你有一定的参考价值。
Currently, multisite is easiest to setup under the following conditions: 1) WordPress for main site installed in the root directory 2) Each additional network site is created in its own subdirectory
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]
以上是关于用于Wordpress多站点的htaccess的主要内容,如果未能解决你的问题,请参考以下文章
带有域掩码的 WordPress 站点的 htaccess 重定向不起作用
子域“m”。与 WordPress 和。 htaccess(在 htaccess 中的重写规则冲突。)
apache_conf 加速WordPress自托管站点。此内容在#BEGIN WordPress之前进入.htaccess文件。