我的 htcaccess 文件中有以下内容:
Options +Indexes
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ $1.php # Remove .php from filename
RewriteRule ^profiles/([^/]+)\.php profiles.php?id=$1&%{QUERY_STRING} [L] # Pretty url for Profile page
RewriteRule ^crime/([^/]+)\.php crime.php?id=$1&%{QUERY_STRING} [L] # Pretty url for Crime page
RewriteRule ^edit_account/([^/]+)\.php edit_account.php?type=$1&%{QUERY_STRING} [L] # Pretty url for Edit Account Page
到目前为止,.php 部分将从文件中删除,但现在当我尝试使用配置文件页面时,通过以下 url:/profiles/1.php 或 /profiles/1,我收到 500 内部服务器错误。文件有什么问题吗?