URL「http:// mydomain / testscripts/php_Env」をリクエストしました
testscriptsフォルダーにphp_Env.phpファイルがあります。
私のhtaccessは次のとおりです
RewriteEngine On # Turn on the rewriting engine
RewriteCond %{REQUEST_FILENAME} !-f # Existing File
RewriteCond %{REQUEST_FILENAME} !-d # Existing Directory
RewriteRule ^(php_([a-zA-Z_]+))$ $1.php [NC,L]
それを実行すると、ブラウザは私を返します
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log
私がやりたかったのは、リクエストファイルがディレクトリでもファイルでもない場合、ファイルをリクエストすることでした。htaccessのどこが間違っていたのですか?