.htaccess 수정해도 먹통인 현상

.htaccess 수정해도 먹통인 현상

QA

.htaccess 수정해도 먹통인 현상

본문

그누5를 사용하고있습니다.

Deflate와 캐싱을 사용하려고 

 

.htaccess를 수정하였습니다.

(/extend/.htaccess 수정하면 되는 거 맞죠?)

 

# .htaccess
ExpiresActive On
ExpiresDefault A31536000 
ExpiresByType text/html A86400
ExpiresByType text/plain A86400
ExpiresByType text/php A300
<Files *.html>
SetOutputFilter DEFLATE
</Files>
<Files *.js>
SetOutputFilter DEFLATE
</Files>
<Files *.css>
SetOutputFilter DEFLATE
</Files>
<IfModule mod_deflate.c> 
 AddOutputFilterByType DEFLATE text/plain 
 AddOutputFilterByType DEFLATE text/html 
 AddOutputFilterByType DEFLATE text/xml 
 AddOutputFilterByType DEFLATE text/css 
 AddOutputFilterByType DEFLATE text/javascript 
 AddOutputFilterByType DEFLATE image/svg+xml 
 AddOutputFilterByType DEFLATE image/x-icon 
 AddOutputFilterByType DEFLATE application/xml 
 AddOutputFilterByType DEFLATE application/xhtml+xml 
 AddOutputFilterByType DEFLATE application/rss+xml 
 AddOutputFilterByType DEFLATE application/javascript 
 AddOutputFilterByType DEFLATE application/x-javascript 
  
 DeflateCompressionLevel 9 
 
 <IfModule mod_deflate>
  AddOutputFilterByType DEFLATE text/plain text/html text/xml
  AddOutputFilterByType DEFLATE application/xhtml+xml application/xml application/rss+xml
  AddOutputFilterByType DEFLATE text/css application/javascript application/x-javascript
  AddOutputFilterByType DEFLATE audio/midi


  DeflateCompressionLevel 9


  BrowserMatch ^Mozilla/4 gzip-only-text/html   # Netscape 4.xx에는 HTML만 압축해서 보냄
  BrowserMatch ^Mozilla/4\.0[678] no-gzip   # Netscape 4.06~4.08에는 압축해서 보내지 않음
  BrowserMatch \bMSIE !no-gzip !gzip-only-text/html   # 자신을 Mozilla로 알리는 MSIE에는 그대로 압축해서 보냄
</ifModule>
  
# Browser specific settings 
 BrowserMatch ^Mozilla/4 gzip-only-text/html 
 BrowserMatch ^Mozilla/4\.0[678] no-gzip 
 BrowserMatch \bMSIE !no-gzip !gzip-only-text/html 
 BrowserMatch \bOpera !no-gzip 


# Setup custom deflate log 
 DeflateFilterNote Input instream 
 DeflateFilterNote Output outstream 
 DeflateFilterNote Ratio ratio 
  
 LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate 
# Example of log file 
 CustomLog logs/deflate_log DEFLATE 
</IfModule> 
 

 

 

초보자라서 구글링해서 명령어를 이것 저것 갖다붙였습니다.(중복되는 것도 있음..)

그런데도 구글 PageSpeed Insights​ 에서 여전히 압축하라고 뜹니다.

적용이 안되는 듯 한데...sir에서 검색해도 구체적인 답변은 없더군요..

 

그누보드5에서 deflate 쓰려면 어떻게 해야하나요?

(카페24호스팅, 윈7입니다...)

 

이 질문에 댓글 쓰기 :

답변 2

수정하신 부분이 있으시면 서버를 중지한 다음에 재시작을 하셔야 적용이 될 겁니다. 

답변 감사드립니다. 그렇다면 저는 카페24 호스팅을 쓰고 있기 때문에 제가 임의로 서버를 재시작하는 것은 불가는 한건가요? 카페24로그인해서 여러 설정을 봐도 재부팅하는 기능은 찾기가 어렵네요..

cafe24 사이트에서 확인해 보니 .htaccess파일은 www 디렉토리 안에 .htaccess 이라는 파일을 생성하고 설정하라는 설명이 있네요. 이렇게 한번 해 보세요.

답변을 작성하시기 전에 로그인 해주세요.
전체 6
QA 내용 검색

회원로그인

(주)에스아이알소프트 / 대표:홍석명 / (06211) 서울특별시 강남구 역삼동 707-34 한신인터밸리24 서관 1402호 / E-Mail: admin@sir.kr
사업자등록번호: 217-81-36347 / 통신판매업신고번호:2014-서울강남-02098호 / 개인정보보호책임자:김민섭(minsup@sir.kr)
© SIRSOFT