Program2.0

web2.0,ajax,IT,php,java

apache Rewrite Rule

leave a comment »

httpd.conf 설정

<Directory /user/myserver(각 서버상에서 접속되는 디렉토리)/>
AllowOverride all
</Directory>

.htaccess 설정

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} /test/([a-z0-9_-]+)$
RewriteRule demo/(.*) /test/index.php?key=$1 [R,L]

http://httpd.apache.org/docs/2.0/ko/howto/htaccess.html

Written by spaceufo

July 21, 2008 at 4:16 am

Posted in apache, server

Tagged with ,

Leave a Reply