4

現在の .htaccess ファイルを 1and1 サーバー (実際には 1und1.de ですが、同じだと思います) にアップロードしたところ、500 内部サーバー エラーが発生しました。

Options -MultiViews 
RewriteEngine On
RewriteBase /lammkontor

RewriteRule ^categories/([^/\.]+)/?$ index.php?url=category.php&cat_url=$1 [L]
RewriteRule ^categories/([^/\.]+)/([^/\.]+)/?$ index.php?url=product.php&cat_url=$1&prod_url=$2 [L]
RewriteRule ^categories/([^/\.]+)/([^/\.]+)/recipes?$ index.php?url=recipes.php&cat_url=$1&prod_url=$2 [L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+\.php)/?$ index.php?url=$1 [QSA]

この .htaccess は、ローカルの MAMP サーバーで完全に機能します。

サンプルファイルを使用してコントロールセンターで CGI-Monitor をテストすると、 - cgi: File not present or has invalid modes (no output)

現在機能している唯一のファイルは index.php です

ご協力いただきありがとうございます!

4

3 に答える 3

1

デフォルトでは、Apache のhtaccess権限はホストによってオフまたは制限されています。あなたがエラーを引き起こしていると思われます。Options -MultiViews

あなたhttpd.confをチェックし、MultiViews以下のように許可されていることを確認してください。

<Directory />
  Options FollowSymLinks
  AllowOverride Indexes Options=All,MultiViews
  Order deny,allow
  Deny from all
</Directory>
于 2013-07-06T03:29:35.993 に答える