¼Ö·ç¼Ç ªÀºµµ¸ÞÀÎ ±â´ÉÀ» ÀÌ¿ëÇϱâ À§Çؼ´Â 1)¼¹ö¼³Á¤ ¶Ç´Â 2).htaccess¼³Á¤ÀÌ ÀÖ½À´Ï´Ù.
1. ¼¹öÀÇ apache ¼³Á¤ÆÄÀÏÀÎ httpd.conf ÆÄÀÏ¿¡¼ ¾Æ·¡ ¼³Á¤ºÎºÐÀº °í°´´ÔÀÇ ¼¹ö¿¡ ¸Â°Ô ¼öÁ¤ÇÏ¼Å¾ß ÇÕ´Ï´Ù.
<VirtualHost 211.233.5.88>
ServerName upche.cgimall.co.kr
DocumentRoot /home/upche/www
AliasMatch ^/([_A-Za-z0-9-]+$) /home/upche/www/homepage_index.php
ErrorLog /var/apache/logs/upso2-error_log
CustomLog /var/apache/logs/upso2-access_log combined
</VirtualHost>
2. .htaccess ÆÄÀÏÀ» »ý¼ºÇÏ¿© ¼³Á¤ÇÒ °æ¿ì¿¡´Â °í°´´ÔÀÇ È£½ºÆÃ»ç ¶Ç´Â ¼¹ö¿¡¼ ¸®¶óÀÌÆ® ¸ðµâÀÌ Áö¿øµÇ¾î¾ß ÇÕ´Ï´Ù.
°í°´´ÔÀÇ FTP »óÀ§ www °æ·Î¿¡ .htaccess ÆÄÀÏÀ» »ý¼ºÇϽðí
ÇØ´ç ÆÄÀϾȿ¡´Â ¾Æ·¡¿Í °°Àº ³»¿ëÀ» ÀÔ·ÂÇØ ÁÖ½Ã¸é µË´Ï´Ù.
RewriteEngine on
RewriteRule ^([_A-Za-z0-9-]+$) ./homepage_index.php?id=$1
|