.htaccess가 동작하려면 allowoverwride가 none이면 안됨
apahce 웹서버를 운영하다보니 .htaccess 파일을 건들일때가 많다.
최대한 안쓰는게 좋다지만, root권한이 없는곳에서 사용한다.
.htaccess 파일을 사용하면 디렉토리별로 설정을 변경할 수 있다.
그리고 이거 쓰기위해선 /etc/httpd/conf/httpd.conf의 해당 디렉토리 (/var/www/html/) 쪽 부분에다가 allowoverride None되있는걸 바꿔주기
https://httpd.apache.org/docs/2.2/ko/howto/htaccess.html
아파치 투토리얼: .htaccess 파일 - Apache HTTP Server Version 2.2
Please note This document refers to the 2.2 version of Apache httpd, which is no longer maintained. The active release is documented here. If you have not already upgraded, please follow this link for more information. You may follow this link to go to the
httpd.apache.org
[Apache] httpd.conf - 주소창 디렉토리 직접 접근 설정
Description: 아파치가 접근할 수 있는 각 디렉토리에 대하여 어떤 서비스와 기능을 허용할 것인지 거부할 것인지 여부를 설정할 수 있다. 디렉토리에 대한 설정 내용은 그 하부 디렉토리에도 영향을 미친다. Synt..
toy0box.tistory.com