0

我在尝试安装 Social Engine 时遇到问题。上传所有文件,设置目录权限,但是当我进入我的域时,我得到一个:

Not Found

The requested URL /install/install was not found on this server.

这与根目录和安装目录中的 .htaccess 文件有关,因为删除它们我确实开始安装过程,但使用长 URL,这样:

/install/index.php/install

例如,这将导致所有长 URL,而不是谷歌用来索引的短 URL。我的 ISP 关闭了安全模式,打开了 mod_rewrite,所以我有点迷路了……

4

2 回答 2

0

.htaccess:

# $Id: .htaccess 7539 2010-10-04 04:41:38Z john $

<IfModule mod_rewrite.c>
  Options +FollowSymLinks
  RewriteEngine On

  # Get rid of index.php
  RewriteCond %{REQUEST_URI} /index\.php
  RewriteRule (.*) index.php?rewrite=2 [L,QSA]

  # Rewrite all directory-looking urls
  RewriteCond %{REQUEST_URI} /$
  RewriteRule (.*) index.php?rewrite=1 [L,QSA]

  # Try to route missing files
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} public\/ [OR]
  RewriteCond %{REQUEST_FILENAME} \.(jpg|gif|png|ico|flv|htm|html|php|css|js)$
  RewriteRule . - [L]

  # If the file doesn't exist, rewrite to index
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php?rewrite=1 [L,QSA]

</IfModule>

# sends requests /index.php/path/to/module/ to "index.php"
# AcceptPathInfo On

# @todo This may not be effective in some cases
FileETag Size
于 2012-07-02T00:09:04.603 回答
0

在Vagrant 上运行 SocialEngine 时遇到同样的问题(使用https://box.scotch.io/)并通过清除..htaccess/install/

于 2017-04-20T10:32:58.807 回答