0

Social Engine をインストールしようとして問題が発生しました。すべてのファイルをアップロードし、ディレクトリのアクセス許可を設定しますが、ドメインに入ると、次のようになります。

Not Found

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

これは、ルートおよびインストール ディレクトリの .htaccess ファイルに関連するものです。これらを削除すると、長い URL を使用してインストール プロセスを開始できますが、次のようになります。

/インストール/index.php/インストール

そして、これは、たとえば、Google がインデックスに使用する短い URL ではなく、すべての長い URL で終わるものです。私の ISP は safe_mode がオフで、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 に答える