为什么以下 Apache 配置会产生内部服务器错误:
# Turn on the rewriting engine
RewriteEngine On
# Redirect "page/" and "page" to "page.php" . Also, redirect "page/en/" and "page/en" to "page.php?lang=en" .
RewriteRule ^(.+)/?([a-z]?)/?$ $1.php?lang=$2 [QSA,NC,L]
所以,基本上,我要做的就是在页面末尾添加“.php”,如果存在“/en”部分,则将其添加为语言参数。