更新时间:2022-11-29 15:58:46
尝试一下:
RewriteEngine on RewriteRule ^(.*)\.html$ $1.php
当您访问page1.html时,系统将查找:page1.php
when you will access page1.html the system will look for: page1.php
如何在 GoDaddy Linux 主机上使用 .htaccess 文件更改 PHP 文件扩展名?
如何在GoDaddy Linux Hosting上使用.htaccess文件更改PHP文件扩展名?
如何在不使用.htaccess的情况下隐藏PHP文件扩展名
如何在Linux Shell脚本中更改文件扩展名?