htaccessに問題があります
URLをphpからhtmlに変換します
ただし、ドメイン内のサブフォルダーがすべてurlをhtmlに変換する場合
サブフォルダーではなく、ドメイン conert url だけが必要です
これは私のコードです
RewriteCond %{REQUEST_URI} !^(.*)form.php(.*)$
RewriteCond %{THE_REQUEST} ^[A-Z]+\s([^\s]+)\.php\s
RewriteCond %{REQUEST_URI} !^(.*)form.php(.*)$
RewriteRule .* %1.html [R=301,L]
RewriteRule ^(.*)\.html$ $1.php
RewriteCond %{ENV:REDIRECT_STATUS} 200
RewriteRule ^.*$ - [L]
RewriteRule ^index.php$ http://%{http_host} [R=301,L]