2017. 6. 7. 14:54

rewrite 리라이트룰

<IfModule mod_rewrite.c>
        RewriteEngine on
        RewriteRule  ^/([a-zA-Z0-9\_]+)/?$ /home/계정/public_html/index.php?d=$1&f=index    [L,QSA]
        RewriteRule  ^/([a-zA-Z0-9\_]+)/([a-zA-Z0-9\_]+)/?$ /home/계정/public_html/index.php?d=$1&f=$2    [L,QSA]
        RewriteRule  ^/([a-zA-Z0-9\_]+)/([a-zA-Z0-9\_]+)/([a-zA-Z0-9\_]+)/?$ /home/계정/public_html/index.php?d=$1&f=$2&p=$3    [L,QSA]
    </IfModule>


http://도메인/d/f/p -> /index.php?d=d&f=f&p=p