apache_conf 强制WPMU子目录
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了apache_conf 强制WPMU子目录相关的知识,希望对你有一定的参考价值。
<?php
/* That's all, stop editing! Happy blogging. */
/* Multisite */
define( 'WP_ALLOW_MULTISITE', true );
define( 'MULTISITE', true);
define( 'SUBDOMAIN_INSTALL', false) ;
define( 'DOMAIN_CURRENT_SITE', 'dev-scoremulti.autopilotyourbusiness.com' );
define( 'PATH_CURRENT_SITE', '/') ;
define( 'SITE_ID_CURRENT_SITE', 1 );
define( 'BLOG_ID_CURRENT_SITE', 1 );
# BEGIN WordPress
<IfModule mod_rewrite.c>
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).*) $1 [L]
RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
RewriteRule . index.php [L]
</IfModule>
# END WordPress
以上是关于apache_conf 强制WPMU子目录的主要内容,如果未能解决你的问题,请参考以下文章
apache_conf 强制WPMU子目录
apache_conf 强制https
apache_conf 强制HTTPS
apache_conf 强制斜杠
apache_conf 强制https
apache_conf 强制没有wwww