{"id":2771,"date":"2013-08-12T00:10:22","date_gmt":"2013-08-11T15:10:22","guid":{"rendered":"http:\/\/auctionpro.co.kr\/?p=2771"},"modified":"2026-02-20T10:46:58","modified_gmt":"2026-02-20T01:46:58","slug":"%ec%95%84%ed%8c%8c%ec%b9%98-rewrite-module-%ec%bc%9c%ec%84%9c-htaccess-%ed%99%9c%ec%84%b1%ed%99%94%ed%95%98%ea%b8%b0%ec%9a%b0%eb%b6%84%ed%88%ac-%ea%b8%b0%ec%a4%80-%ec%9b%b9%ec%9c%bc%eb%a1%9c","status":"publish","type":"post","link":"https:\/\/www.auctionpro.co.kr\/?p=2771","title":{"rendered":"IIS \uc640 Apache \uc5d0\uc11c rewrite \uc758 \uc138\ud305"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\">1\ufe0f\u20e3 IIS (Windows \/ web.config \uae30\ubc18)<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">\u2714\ufe0f \uae30\ubcf8 \uac1c\ub150<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\ubaa8\ub4c8: <strong>URL Rewrite Module \ud544\uc694<\/strong><\/li>\n\n\n\n<li>\uc124\uc815 \uc704\uce58: <code>web.config<\/code><\/li>\n\n\n\n<li>XML \uae30\ubc18<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.auctionpro.co.kr\/wp-content\/uploads\/2013\/08\/image.png\"><img loading=\"lazy\" decoding=\"async\" width=\"591\" height=\"675\" src=\"https:\/\/www.auctionpro.co.kr\/wp-content\/uploads\/2013\/08\/image.png\" alt=\"\" class=\"wp-image-10029\" srcset=\"https:\/\/www.auctionpro.co.kr\/wp-content\/uploads\/2013\/08\/image.png 591w, https:\/\/www.auctionpro.co.kr\/wp-content\/uploads\/2013\/08\/image-263x300.png 263w\" sizes=\"auto, (max-width: 591px) 100vw, 591px\" \/><\/a><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\ud83d\udc49 Rewrite \ubaa8\ub4c8 \uc5c6\uc73c\uba74 \uc624\ub958 \ubc1c\uc0dd (\uc774\ubbf8 \uacaa\uc73c\uc2e0 \uadf8 \ucf00\uc774\uc2a4)<br><br><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u2714\ufe0f \uc124\uce58 (\uc5c6\uc744 \uacbd\uc6b0)<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">\ubc29\ubc95 1 \u2014 \uacf5\uc2dd \ub2e4\uc6b4\ub85c\ub4dc \uc124\uce58 (\uac00\uc7a5 \uc548\uc804)<br><br>Microsoft IIS URL Rewrite Module 2.1\uc744 \uc124\uce58\ud558\uba74 \ub429\ub2c8\ub2e4.<br><br>\uc124\uce58 \uc21c\uc11c<br><br>\uc544\ub798 \uacf5\uc2dd \ud398\uc774\uc9c0 \uc811\uc18d<br>https:\/\/www.iis.net\/downloads\/microsoft\/url-rewrite<br><br>Install this extension \ud074\ub9ad<\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u2714\ufe0f \uae30\ubcf8 \uc608\uc81c (ASPX Rewrite)<\/h2>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:xhtml decode:true \">&lt;configuration&gt;\n  &lt;system.webServer&gt;\n    &lt;rewrite&gt;\n      &lt;rules&gt;        \n         &lt;!-- \/EView \u2192 NewET.aspx --&gt;\n        &lt;rule name=\"EView rewrite\" stopProcessing=\"true\"&gt;\n          &lt;match url=\"^EView(\\.aspx)?$\" \/&gt;\n          &lt;action type=\"Rewrite\" url=\"NewET.aspx\" \/&gt;\n        &lt;\/rule&gt;        \n         &lt;!-- \/TView \u2192 NewIT.aspx --&gt;\n        &lt;rule name=\"TView rewrite\" stopProcessing=\"true\"&gt;\n          &lt;match url=\"^TView(\\.aspx)?$\" \/&gt;\n          &lt;action type=\"Rewrite\" url=\"NewIT.aspx\" \/&gt;\n        &lt;\/rule&gt;      \n     &lt;\/rules&gt;\n    &lt;\/rewrite&gt;\n  &lt;\/system.webServer&gt;\n&lt;\/configuration&gt;<\/pre><\/div>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u2714\ufe0f \uc8fc\uc694 \uc635\uc158 \uc124\uba85<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\ud56d\ubaa9<\/th><th>\uc124\uba85<\/th><\/tr><\/thead><tbody><tr><td><code>&lt;match url=\"\"&gt;<\/code><\/td><td>\uc694\uccad URL \ud328\ud134 (\uc815\uaddc\uc2dd)<\/td><\/tr><tr><td><code>&lt;action type=\"Rewrite\"&gt;<\/code><\/td><td>\ub0b4\ubd80 \uacbd\ub85c \ubcc0\uacbd<\/td><\/tr><tr><td><code>Redirect<\/code><\/td><td>\ube0c\ub77c\uc6b0\uc800 URL \ubcc0\uacbd<\/td><\/tr><tr><td><code>stopProcessing<\/code><\/td><td>\uc774\ud6c4 rule \uc2e4\ud589 \uc911\uc9c0<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u2714\ufe0f Redirect \uc608\uc81c (SEO\uc6a9)<\/h2>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:xhtml decode:true \">&lt;action type=\"Redirect\" url=\"https:\/\/example.com\/new\" redirectType=\"Permanent\" \/&gt;<\/pre><\/div>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">2\ufe0f\u20e3 Apache (Linux \/ .htaccess \ub610\ub294 httpd.conf)<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">\u2714\ufe0f \uae30\ubcf8 \uac1c\ub150<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\ubaa8\ub4c8: <code>mod_rewrite<\/code><\/li>\n\n\n\n<li>\uc124\uc815 \uc704\uce58:\n<ul class=\"wp-block-list\">\n<li><code>.htaccess<\/code> (\ub514\ub809\ud1a0\ub9ac\ubcc4)<\/li>\n\n\n\n<li><code>httpd.conf<\/code> \/ <code>apache2.conf<\/code> (\uc11c\ubc84 \uc804\uccb4)<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u2714\ufe0f \ubaa8\ub4c8 \ud65c\uc131\ud654 (Ubuntu \uae30\uc900)<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">a2enmod rewrite<br>systemctl restart apache2<\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u2714\ufe0f \uae30\ubcf8 \uc608\uc81c (.htaccess)<\/h2>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:vim decode:true \">RewriteEngine On# \/EView \u2192 NewET.php\nRewriteRule ^EView\/?$ NewET.php [L]# \/TView \u2192 NewIT.php\nRewriteRule ^TView\/?$ NewIT.php [L]<\/pre><\/div>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u2714\ufe0f Redirect \uc608\uc81c<\/h2>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:vim decode:true \">RewriteRule ^old$ https:\/\/example.com\/new [R=301,L]<\/pre><\/div>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u2714\ufe0f QueryString \uc720\uc9c0<\/h2>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:vim decode:true \">RewriteRule ^ticket$ NewET.php [L,QSA]<\/pre><\/div>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u2714\ufe0f \uc870\uac74 (if \uac1c\ub150)<\/h2>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:vim decode:true \">RewriteCond %{REQUEST_METHOD} POST\nRewriteRule ^api$ api.php [L]<\/pre><\/div>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">3\ufe0f\u20e3 IIS vs Apache \ube44\uad50<\/h1>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\ud56d\ubaa9<\/th><th>IIS<\/th><th>Apache<\/th><\/tr><\/thead><tbody><tr><td>\uc124\uc815 \ud30c\uc77c<\/td><td>web.config<\/td><td>.htaccess \/ conf<\/td><\/tr><tr><td>\ubb38\ubc95<\/td><td>XML<\/td><td>\ud14d\uc2a4\ud2b8<\/td><\/tr><tr><td>\ubaa8\ub4c8<\/td><td>URL Rewrite \uc124\uce58 \ud544\uc694<\/td><td>mod_rewrite \uae30\ubcf8 \ud3ec\ud568<\/td><\/tr><tr><td>\uc815\uaddc\uc2dd<\/td><td>.NET regex<\/td><td>Apache regex<\/td><\/tr><tr><td>UI<\/td><td>IIS Manager GUI \uc788\uc74c<\/td><td>CLI \uc911\uc2ec<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">4\ufe0f\u20e3 \uc2e4\ubb34 \ud575\uc2ec \ud3ec\uc778\ud2b8 (\uc911\uc694)<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">\u2714\ufe0f IIS\uc5d0\uc11c \uc790\uc8fc \ub098\ub294 \uc624\ub958<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u274c <code>&lt;rewrite&gt;<\/code> \uc788\ub294\ub370 \ubaa8\ub4c8 \uc5c6\uc74c \u2192 500 \uc624\ub958<\/li>\n\n\n\n<li>\u274c <code>&lt;system.web&gt;<\/code> \uc544\ub798 \ub123\uc74c \u2192 \uc624\ub958<br>\ud83d\udc49 \ubc18\ub4dc\uc2dc <code>&lt;system.webServer&gt;<\/code> \uc544\ub798<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u2714\ufe0f Apache\uc5d0\uc11c \uc790\uc8fc \ubb38\uc81c<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u274c <code>.htaccess<\/code> \ubb34\uc2dc\ub428<br>\ud83d\udc49 <code>AllowOverride All<\/code> \ud544\uc694<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:xhtml decode:true \">&lt;Directory \/var\/www\/html&gt;\n    AllowOverride All\n&lt;\/Directory&gt;<\/pre><\/div>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">5\ufe0f\u20e3 \ub3d9\uc77c \uae30\ub2a5 \ubcc0\ud658 \uc608 (\uc2e4\ubb34 \uc911\uc694)<\/h1>\n\n\n\n<p class=\"wp-block-paragraph\">\ud83d\udc49 IIS<\/p>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:xhtml decode:true \">&lt;match url=\"^product\/([0-9]+)$\" \/&gt;\n&lt;action type=\"Rewrite\" url=\"product.aspx?id={R:1}\" \/&gt;<\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\ud83d\udc49 Apache<\/p>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"lang:vim decode:true \">RewriteRule ^product\/([0-9]+)$ product.php?id=$1 [L]<\/pre><\/div>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h1 class=\"wp-block-heading\">\u2714\ufe0f \uacb0\ub860<\/h1>\n\n\n\n<ul class=\"wp-block-list\">\n<li>IIS = <strong>web.config + XML + \ubaa8\ub4c8 \ud544\uc694<\/strong><\/li>\n\n\n\n<li>Apache = <strong>.htaccess + \uac04\ub2e8\ud55c \uaddc\uce59<\/strong><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>1\ufe0f\u20e3 IIS (Windows \/ web.config \uae30\ubc18) \u2714\ufe0f \uae30\ubcf8 \uac1c\ub150 \ud83d\udc49 Rewrite \ubaa8\ub4c8 \uc5c6\uc73c\uba74 \uc624\ub958 \ubc1c\uc0dd (\uc774\ubbf8 \uacaa\uc73c\uc2e0 \uadf8 \ucf00\uc774\uc2a4) \u2714\ufe0f \uc124\uce58 (\uc5c6\uc744 \uacbd\uc6b0) \ubc29\ubc95 1 <a class=\"mh-excerpt-more\" href=\"https:\/\/www.auctionpro.co.kr\/?p=2771\" title=\"IIS \uc640 Apache \uc5d0\uc11c rewrite \uc758 \uc138\ud305\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[15],"tags":[],"class_list":["post-2771","post","type-post","status-publish","format-standard","hentry","category-worldpress-"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/2771","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2771"}],"version-history":[{"count":0,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=\/wp\/v2\/posts\/2771\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2771"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2771"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.auctionpro.co.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2771"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}