简体   繁体   English

多站点子域404错误

[英]Multisite Subdomain 404 errors

I am a beginner in wordpress.I was in need to setup multisite, i managed to setup everything as mentioned in the codex. 我是wordpress的初学者。我需要设置多站点,我设法按照食典中的说明进行了所有设置。 I created a subdomain, it appears on the dashboard under site, but when i click on it it shows 404 page not found error. 我创建了一个子域,它出现在站点下方的仪表板上,但是当我单击它时,它显示404页面未找到错误。 Dns wild card is set, the wp config file and .htacess(i copied the network setup in to it).Any help will be appreciated.Thanks. 设置了dns通配符,wp配置文件和.htacess(我将网络设置复制到其中)。感谢您的帮助。

my .ht access file=> 我的.ht访问文件=>

' # Use PHP 5.3 AddHandler application/x-httpd-php53 .php suPHP_ConfigPath /opt/php53/lib # BEGIN WordPress RewriteEngine On RewriteBase / RewriteRule ^index.php$ - [L] '#使用PHP 5.3 AddHandler应用程序/ x-httpd-php53 .php suPHP_ConfigPath / opt / php53 / lib#在RewriteBase / RewriteRule上使用WordPress RewriteEngine / RewriteRule ^ index.php $-[L]

# add a trailing slash to /wp-admin
RewriteRule ^wp-admin$ wp-admin/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
RewriteRule ^(.*\.php)$ $1 [L]
RewriteRule . index.php [L]
</IfModule>'

# END WordPress

wp_config file=>
'define('WP_DEBUG', false);

/* Multisite */
define( 'WP_ALLOW_MULTISITE', true );

define('MULTISITE', true);
define('SUBDOMAIN_INSTALL', true);
define('DOMAIN_CURRENT_SITE', '***.net');
define('PATH_CURRENT_SITE', '/');
define('SITE_ID_CURRENT_SITE', 1);
define('BLOG_ID_CURRENT_SITE', 1);

/* That's all, stop editing! Happy blogging. */'

Reply

我使用的是插件域,因此通配符设置有所不同。我尝试以这种方式进行设置http://support.hostgator.com/articles/hosting-guide/lets-get-started/dns-name-servers/wildcard -dns-它是什么以及如何使用它-几个小时后一切都正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM