📜  删除文件扩展名 - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:28.689000             🧑  作者: Mango

代码示例1
RewriteEngine on


RewriteCond %{THE_REQUEST} /([^.]+)\.html [NC]
RewriteRule ^ /%1 [NC,L,R]

RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^ %{REQUEST_URI}.html [NC,L]