現在の .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 です
ご協力いただきありがとうございます!