1

私のウェブホスト (hourb、000webhost に似ていますが、ssh を使用) に friendica をインストールしようとしています。

ディレクトリ/サブドメイン imoppen.domain.com (domain.com/imoppen) にインストールしています

しかし、それは言う: .htaccess での URL の書き換えが機能していません。サーバー構成を確認してください。インストールを続行できません。

ディレクトリのrewritebase部分と関係があると思いますが、修正方法がわかりません。

PHPでもエラーが発生しますが、それは私にとっては大したことではありません。

 Warning: set_time_limit() has been disabled for security reasons in /home/username/public_html/imoppen/boot.php on line 290

私の最初の .htaccess (domain.com) には以下が含まれます。

# DO NOT REMOVE THIS LINE AND THE LINES BELOW ERRORPAGEID:yLaNyW

ErrorDocument 404 /404.html

# DO NOT REMOVE THIS LINE AND THE LINES ABOVE yLaNyW:ERRORPAGEID

RewriteBase /

私の 2 番目の .htaccess (domain.com/installationdirectory) には以下が含まれます。

Options -Indexes
AddType application/x-java-archive .jar
AddType audio/ogg .oga

<FilesMatch "\.(out|log)$">
Deny from all
</FilesMatch>
SetEnv PHP_VER 5_3

<IfModule mod_rewrite.c>
  RewriteEngine on
  # Protect repository directory from browsing
  RewriteRule "(^|/)\.git" - [F]

  # Rewrite current-style URLs of the form 'index.php?q=x'.
  # Also place auth information into REMOTE_USER for sites running
  # in CGI mode.

  # If you have troubles or use VirtualDocumentRoot
  # uncomment this and set it to the path where your friendica installation is
  # i.e.:
  # Friendica url: http://some.example.com
  # RewriteBase /
  # Friendica url: http://some.example.com/friendica
  # RewriteBase /imoppen/
  #
    RewriteBase /

  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php?q=$1 [E=REMOTE_USER:%{HTTP:Authorization},L,QSA]

</IfModule>

ご覧のとおり、rewritebase 部分を使用しようとしましたが、残念ながら機能しませんでした。私の全体的なphpバージョンは5.3に設定されています

4

1 に答える 1

1

あなたはhourbホスティングを使用しているようです(私もそうです)設定-> htaccess-> URLの書き換えを許可することで解決しました

于 2013-04-17T15:56:22.077 に答える