>  Q&A  >  본문

Apache가 index.php를 자동으로 숨기는 방법

이미 .htaccess 파일을 설정했습니다

으아악

index.php/xxx에 액세스할 때 평소대로 액세스하면 /xxx와 같은 주소가 되지 않습니다. index.php/xxx를 원하면 자동으로 /xxx로 이동합니다.

巴扎黑巴扎黑2713일 전491

모든 응답(1)나는 대답할 것이다

  • 世界只因有你

    世界只因有你2017-05-16 17:02:23

    RewriteBase/index.php가 있는 DocumentRoot, 여기에 .htaccess를 입력하세요

    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php?$1 [QSA,PT,L]

    회신하다
    0
  • 취소회신하다