└── kakao ├── .htaccess ├── keyboard.php └── message.php /kakao/.htaccess: -------------------------------------------------------------------------------- 1 | RewriteEngine on 2 | 3 | #1)externally redirect "/file.php" to "/file" 4 | RewriteCond %{THE_REQUEST} /([^.]+)\.php [NC] 5 | RewriteRule ^ /%1 [NC,L,R] 6 | #2)Internally map "/file" back to "/file.php" 7 | RewriteCond %{REQUEST_FILENAME}.php -f 8 | RewriteRule ^(.*?)/?$ /$1.php [NC,L] -------------------------------------------------------------------------------- /kakao/keyboard.php: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /kakao/message.php: -------------------------------------------------------------------------------- 1 | --------------------------------------------------------------------------------