1
"http://www.abc.com
"이라는 사이트가 있는데 htaccess 파일이 있습니다.하위 폴더 htacess 파일이 작동하지 않습니다.
그리고 "http://www.abc.com/sub/
"이라는 하위 폴더가 있는데 htaccess가 .php
에서 .html
페이지로 변환되지만 작동하지 않습니다.
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.abc\.com
RewriteRule (.*) http://www.abc.com/$1 [R=301,L]
RewriteRule ^(.*)\.html $1\.php
어떻게해야합니까?