bit
V2EX  ›  问与答

Wordpress 多站点打不开

  •  
  •   bit · Mar 4, 2011 · 5923 views
    This topic created in 5569 days ago, the information mentioned may be changed or developed.
    在本地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]
    6 replies    1970-01-01 08:00:00 +08:00
    TheOnly92
        1
    TheOnly92  
       Mar 4, 2011
    error.log 都说些什么?
    bit
        2
    bit  
    OP
       Mar 4, 2011
    [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
        3
    Livid  
    MOD
    PRO
       Mar 4, 2011
    你的 Apache 没有加载 rewrite 模块。
    bit
        4
    bit  
    OP
       Mar 4, 2011
    解决了,应该在apache里面 enable rewrite module。我用的wamp,默认关闭的。
    bit
        5
    bit  
    OP
       Mar 4, 2011
    多谢!!
    benzhe
        6
    benzhe  
       Mar 4, 2011
    如果是 Apache ,只要有权限就不用手动修改htaccess吧?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5024 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 93c8b4a0 · 49ms · UTC 01:09 · PVG 09:09 · LAX 18:09 · JFK 21:09
    ♥ Do have faith in what you're doing.