0
.hp로 .html을 변경하는 .htaccess 파일이 있습니다. index.php가 .php 파일 확장자를 유지하도록 어떻게 수정할 수 있습니까?htaccess : 예외가있는 .php로 .phtml을 다시 작성하십시오.
RewriteEngine on
RewriteBase/
RewriteRule ^(.*)\.html$ $1.php [L]
.hp로 .html을 변경하는 .htaccess 파일이 있습니다. index.php가 .php 파일 확장자를 유지하도록 어떻게 수정할 수 있습니까?htaccess : 예외가있는 .php로 .phtml을 다시 작성하십시오.
RewriteEngine on
RewriteBase/
RewriteRule ^(.*)\.html$ $1.php [L]
rewriteCond %{REQUEST_URI} !^index.php
당신의 코드는'.html' 및 사용을위한'.php' 사용할 수 모두 있습니다. 그래서 index.php는 여전히 작동 할 것입니다. – Gerben