Wordpress 3.0 多站点内部服务器错误
我安装了 WordPress (3.0) 多站点(并根据 WordPress “创建网络”教程)位于附加域的根目录中,其中包含使用网络安装的子目录方法创建的两个站点。
我的网站结构如下:
ADDON DOMAIN:http://example.com/(wordpress 安装位置)
站点 2:http://example.com/site2/
站点 3:http://example.com/site3/
我时不时地会收到随机的内部服务器错误,等待几分钟并再次访问每个站点后,这些错误就会消失。
我怀疑造成这种情况的原因可能与 .htaccess 文件(位于附加域的根目录中)有关,或者与 wp-config.php 文件有关的重定向问题有关。所有生成的 mod_rewrite 规则都已添加到我上面的 .htaccess 文件中 /* 就这样,停止编辑!快乐的博客。 */。 HostGator 是我的主机。
任何帮助将不胜感激!
I have WordPress (3.0) multisite installed (and correctly configured according to the WordPress 'Create A Network' tutorial) in the root of an add-on domain with two sites created using the subdirectory method of network install.
My site structure is as follows:
ADDON DOMAIN: http:/example.com/ (wordpress install location)
SITE 2: http:/example.com/site2/
SITE 3: http:/example.com/site3/
I have been getting random Internal Server Errors every now and then which disappear after waiting a few minutes and visiting each site again.
I have a suspicion that the cause of this could be something to do with either the .htaccess file (in the root directory of the add-on domain), or a redirect issue to do with the wp-config.php file. All generated mod_rewrite rules were added to my .htaccess file above /* That's all, stop editing! Happy blogging. */. HostGator is my host.
Any help would be much appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
500 内部服务器错误往往是由于编辑 .htaccess 文件时使用错误的字符编码引起的。
而且听起来您可能会向 wp-config.php 添加 .htaccess 重写规则,但您没有这样做。
/* 就这样,停止编辑!快乐的博客。 */
行出现在默认的 wp-config.php 文件中,而不是 .htaccess 中。Rediects 和 mod_rewrites 仅出现在 .htaccess 文件中,您可以在其中找到
# BEGIN WordPress
和# END WordPress
注释。.htaccess 和 wp-config.php 是两个不同的文件,用于两个不同的目的。
500 Internal server errors tend to be caused by using the wrong character encoding when editing the .htaccess file.
And it also sounds like you might be adding .htaccess rewrite rules to wp-config.php, which you don't do. The
/* That's all, stop editing! Happy blogging. */
line appears in the default wp-config.php file and not in .htaccess.Rediects and mod_rewrites only go in .htaccess files, where you will find the
# BEGIN WordPress
and# END WordPress
comments..htaccess and wp-config.php are two different files for two different purposes.