Wordpress 多站点打不开

2011-03-04 20:38:54 +08:00
 bit
在本地localhost都配置好多站点功能,Super Admin选项也出来了,但新创建的站点 http://localhost/wp/en/ 就是打不开

如果在 .htaccess 里面加上 wp 在 tools > network 里面要求的如下配置,网站就直接 Internal Server Error,不知是怎么回事?求解


RewriteEngine On
RewriteBase /wp/
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]
5118 次点击
所在节点    问与答
6 条回复
TheOnly92
2011-03-04 20:40:02 +08:00
error.log 都说些什么?
bit
2011-03-04 21:00:40 +08:00
[Fri Mar 04 20:32:32 2011] [alert] [client 127.0.0.1] D:/My Documents/My Dropbox/projects/jc-magnet/wp/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration, referer: http://localhost/wp/wp-admin/ms-sites.php?action=editblog&id=2
Livid
2011-03-04 21:06:41 +08:00
你的 Apache 没有加载 rewrite 模块。
bit
2011-03-04 21:09:40 +08:00
解决了,应该在apache里面 enable rewrite module。我用的wamp,默认关闭的。
bit
2011-03-04 21:12:32 +08:00
多谢!!
benzhe
2011-03-04 22:08:07 +08:00
如果是 Apache ,只要有权限就不用手动修改htaccess吧?

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/9295

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX