【发布时间】:2022-01-25 23:29:24
【问题描述】:
我很难理解这条重写规则的第 3 行有什么问题:
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^(.*)\.html$ $1.php [L]
RewriteRule ^fr/lecon-de-kite\.html$ kite-lessons.php?lang=fr [L]
RewriteRule ^fr$ index.php?lang=fr [L]
RewriteRule ^it$ index.php?lang=it [L]
当我尝试访问 http://localhost/kitemeup/fr/lecon-de-kite.html 时,我收到 Not Found 错误
【问题讨论】:
标签: .htaccess mod-rewrite url-rewriting