我正在使用此代码将我的 php 文件重写为 html 文件,因此Technical.php将显示为Technical.html
RewriteEngine on
RewriteRule ^(.*)\.html$ $1.php [nc]
但是在访问technical.html时它给了我一个404错误
Not Found
The requested URL /technical.php was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
我的 htaccess 中的顺序有误吗?