浏览代码

Add missing RewriteEngine On to .htaccess

The RewriteCond/RewriteRule directives for extension stripping were
present but RewriteEngine was never explicitly enabled. This relied on
a parent .htaccess having it on, which is a fragile assumption.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Benjamin Harris 2 周之前
父节点
当前提交
98b259d50e
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      .htaccess

+ 1 - 0
.htaccess

@@ -2,6 +2,7 @@
 ServerSignature Off
 
 # remove php and html extensions
+RewriteEngine On
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteRule ^([^\.]+)$ $1.php [NC,L]
 RewriteRule ^([^\.]+)$ $1.html [NC,L]