admin管理员组文章数量:1023758
I'm trying to configure a WP Multisite to run locally, all is fine on the server, but getting this to run locally is turning into quite a pain. The issue I'm currently seeing is that some of the sites won't load anything except the home page when the permalink settings are anything but plain. The inconsistency is confusing me.
So far I've added the following code:
wp-config.php
define('WP_DEBUG', true);
/* Multisite */
define('WP_ALLOW_MULTISITE', true);
/* Multisite stage two */
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', false);
define('DOMAIN_CURRENT_SITE', '******');
define('PATH_CURRENT_SITE', '/wp/******/site/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);
.htaccess
RewriteEngine On
RewriteBase /wp/******/site/
RewriteRule ^index\.php$ - [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]
I've...
- Updated all the site values in the DB
- Reset the permalinks multiple times
- Deactivated all plugins
- Made sure the rewrite module is turned on
All the searches for this issue bring me to the same 3 solutions I've tried again and again. Any help will be hugely appreciated!
I'm trying to configure a WP Multisite to run locally, all is fine on the server, but getting this to run locally is turning into quite a pain. The issue I'm currently seeing is that some of the sites won't load anything except the home page when the permalink settings are anything but plain. The inconsistency is confusing me.
So far I've added the following code:
wp-config.php
define('WP_DEBUG', true);
/* Multisite */
define('WP_ALLOW_MULTISITE', true);
/* Multisite stage two */
define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', false);
define('DOMAIN_CURRENT_SITE', '******');
define('PATH_CURRENT_SITE', '/wp/******/site/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);
.htaccess
RewriteEngine On
RewriteBase /wp/******/site/
RewriteRule ^index\.php$ - [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]
I've...
- Updated all the site values in the DB
- Reset the permalinks multiple times
- Deactivated all plugins
- Made sure the rewrite module is turned on
All the searches for this issue bring me to the same 3 solutions I've tried again and again. Any help will be hugely appreciated!
本文标签: phpWordpress returning 404 for multisite pages
版权声明:本文标题:php - Wordpress returning 404 for multisite pages 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745559944a2156103.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论