apache1 아파치(Apache) URL 줄이기 리다이렉트(Rewriterule 옵션) 사용 .htaccess 파일을 다음과 같이 수정하는데 밑줄친 부분을 추가하면 된다. PHP_FLAG register_globals ON PHP_VALUE mysql.default_charset UTF8 RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)/(.*)$ http://www.localhost.co.kr/blog/$2 만약 http://www.localhost.co.kr 이라는 사이트에서 블로그를 운영하는데 http://www.localhost.co.kr/blog/abc/index.php -> http://www.localhost.co.kr/blog/abc(inde.. 2017. 6. 10. 이전 1 다음