0
Apache의 .htaccess 파일에서 한 줄에 둘 이상의 명령문을 쓸 수 있습니까? 예를 들어,한 줄에 여러 개의 htaccess 문이 있습니다.
ErrorDocument 403 "test"
ErrorDocument 404 "test2"
end 문장 문자가 ";"인 경우 이상적으로 다음과 같이됩니다.
ErrorDocument 403 "test";ErrorDocument 404 "test2"
이것은 구문 분석하기위한 것이 아닙니다.
* 업데이트 나는 또한 당신이 상자 밖에서 생각 도움이 될 다음을 시도했다 :
<directory>ErrorDocument 403 "test"</directory><directory>ErrorDocument 404 "test2"</directory>
줄 바꿈을 할 때와 다른 세미콜론으로 나누는 방법은 무엇입니까? Annd, 줄 바꿈은 필요하지 않습니다. https://httpd.apache.org/docs/current/configuring.html#syntax –
아니요, 가능하지 않습니다. – starkeen