쉬운 일이라면 사과드립니다. 나는 아무 소용이 들리도록 봤다..htaccess 우분투에서 mod_rewrite 규칙이 작동하지 않습니다.
저는 Ubuntu 9.04, Jaunty Jackelope 및 Apache2를 실행하고 있습니다. 많은 문제가 발생한 후, 마침내 이 mod_rewrite를 사용하고 내 .htaccess 파일이 문제를 일으키려고 시도했지만 실패했습니다. 이건 제 설정입니다.
/etc/apache2/conf.d/ apeace-public-html.conf라는 파일이 있습니다. 다음과 같이 읽습니다
# makes /home/apeace/public_html/ available through /localhost/apeace
Alias /apeace /home/apeace/public_html/
을 그리고에 /이 집/에이피 스/public_html을가 나는 다음의 .htaccess 파일 한/: /이 집/에이피 스/public_html을가 나는 파일 이름을 지정한/또한
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^test\.html$ index.html
을에 index.html,하지만 test.html라는 파일이 없습니다. http://localhost/apeace/test.html에 액세스하려고 시도하면 indexewtml이 다시 작성되어야합니다. 그러나 이것은 내가 얻는 오류입니다.
Not Found
The requested URL /home/apeace/public_html/index.html was not found on this server.
그래서 내가 세계에서 뭘 잘못하고 있니?
감사합니다.
-apeace 그것은 "index.html을"찾을 수 없습니다 당신을 말하고 있기 때문에 귀하의 재 작성 규칙이 제대로 작동
이것은 효과가 있습니다. 정말 고맙습니다. 나는 그게 그렇게 간단하지 않다고 믿을 수 없다. – apeace