아파치 rewrite rule 존재하지 않는 파일 403 forbidden 을 router.php 로.

php_flag register_globals 0

php_flag short_open_tag 0

php_value default_charset utf-8


RewriteEngine On


RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f

RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d

RewriteRule .* rewrite.php [L,QSA]




출처 : PHPSCHOOL 송효진님

TAGS.

Comments 0