.htaccess를 처음 사용하면서 아파치에 mod_rewrite
을 사용하는 데 문제가 있습니다.mod_rewrite가 작동하지 않습니다.
그래서 기본적으로 URL이 있습니다. www.website.com/test/index.php
와 나는
www.website.com/t/index.php
그래서 내 .htaccess
파일에 나는이 세 줄이 짧아 싶습니다
RewriteEngine On
RewriteBase/
RewriteRule ^test/(.*) t/$1 [R=301,L]
이 www.website.com/ 나에게 지시를 위해 완벽하게 작동을 t/index.php하지만 index.php 페이지는로드되지 않고 404 error
만 표시합니다. 어떤 도움이라도 크게 수정 될 것입니다.
[serverfault.com] (http://serverfault.com)에 게시 해보십시오. –
404 오류가 발생하면 다시 쓰기가 어떻게 작동하는지 어떻게 알 수 있습니까? – Codeguy007
글쎄, www.website.com/test/index.php로 가면 www.website.com/t/index.php로 리디렉션되지만 index.php는 새 URL로로드되지 않습니다. – user1476276