{"id":3181,"date":"2022-11-12T17:04:31","date_gmt":"2022-11-12T08:04:31","guid":{"rendered":"https:\/\/mightyfriend.net\/?p=3181"},"modified":"2024-06-21T08:17:42","modified_gmt":"2024-06-20T23:17:42","slug":"wordpress-permalink-change","status":"publish","type":"post","link":"https:\/\/mightyfriend.net\/?p=3181","title":{"rendered":"\uc6cc\ub4dc\ud504\ub808\uc2a4 \uace0\uc720\uc8fc\uc18c \ubcc0\uacbd \ud6c4 404 \uc5d0\ub7ec \ud574\uacb0"},"content":{"rendered":"<p>\uc6cc\ub4dc\ud504\ub808\uc2a4 \uace0\uc720 \uc8fc\uc18c(Permalink) \ubcc0\uacbd \ud6c4 404 \uc5d0\ub7ec \ud574\uacb0\ud558\ub294 \ubc95\uc744 \uc815\ub9ac\ud574 \ubcf4\uc558\uc2b5\ub2c8\ub2e4. \uac80\uc0c9\ud574 \ubcf4\ub2c8 .htaccess \uc774 \ud30c\uc77c\uc744 \uc9c1\uc811 \uc218\uc815\ud558\ub77c\uace0 \ud558\ub294\ub370 \uadf8\uac83\ubcf4\ub2e4\ub294 \ub77c\uc988\ubca0\ub9ac\ud30c\uc774 \ud648\ud398\uc774\uc9c0\uc5d0 \uc788\ub294 rewrite module\ub85c \ud574\uacb0\ud558\ub294 \ubc29\ubc95\uc744 \uc801\uc5b4\ubcf4\uc558\uc2b5\ub2c8\ub2e4. SEO(search engine optimization)\uc744 \uc704\ud574 \uc124\uc815\ud558\ub294 \ubd84\uc774 \ub9ce\uae34 \ud55c\ub370, \uc800\ub294 \ud55c\uae00\uc8fc\uc18c\uac00 \uc0dd\uae30\ub294 \uac8c \uc2eb\uc5b4\uc11c \uc548 \ud588\uc2b5\ub2c8\ub2e4.<\/p>\n<p>\uba3c\uc800 \uc544\ub798\uc640 \uac19\uc774 rewrite module\uc744 \ud65c\uc131\ud654\ud574 \uc90d\ub2c8\ub2e4.<\/p>\n<pre>[pi@localhost ~]# sudo a2enmod rewrite<\/pre>\n<p>\uc774\uc81c 000-default.conf \ubb38\uc11c\ub97c \uc5f4\uc5b4\uc11c \uc544\ub798 \ub0b4\uc6a9\uc744 \uccab \ubc88\uc9f8 \uc904 \ub2e4\uc74c\uc778 <span style=\"color: #0000ff;\">\ub450 \ubc88\uc9f8 \uc904<\/span>\uc5d0 \ucd94\uac00\ud569\ub2c8\ub2e4.<\/p>\n<pre>[pi@localhost ~]# sudo vim \/etc\/apache2\/sites-available\/000-default.conf\r\n\r\n~ \ucd94\uac00\ud574\uc57c\ud560 \ub0b4\uc6a9 ~\r\n\r\n&lt;Directory \"\/var\/www\/html\"&gt;\r\nAllowOverride All\r\n&lt;\/Directory&gt;<\/pre>\n<p>\ucd5c\uc885\uc801\uc73c\ub85c \ub2e4\uc74c\uacfc \uac19\uc774 \uc5c5\ub370\uc774\ud2b8 \ub418\uc5b4\uc57c \ud569\ub2c8\ub2e4.<\/p>\n<pre>&lt;VirtualHost *:80&gt;\r\n\u00a0 \u00a0&lt;Directory \"\/var\/www\/html\"&gt;\r\n\u00a0 \u00a0 \u00a0 AllowOverride All\r\n\u00a0 \u00a0&lt;\/Directory&gt;\r\n   ...<\/pre>\n<p>\uadf8\ub9ac\uace0 \ub9cc\uc57d SSL \uc778\uc99d\uc744 \ud1b5\ud574 https \uac00 \uc801\uc6a9\ub418\uace0 \uc788\uc73c\uba74 \uac70\uae30\uc5d0\ub3c4 \ucd94\uac00\ud574 \uc918\uc57c \ud569\ub2c8\ub2e4. \uc0ac\uc2e4\uc740 \uc774\ucabd\uc774 \ub354 \uc911\uc694\ud560\uc9c0\ub3c4\uc694.<\/p>\n<pre>[pi@localhost ~]# sudo vim \/etc\/apache2\/sites-available\/default-ssl.conf<\/pre>\n<p>\uc5ed\uc2dc \ub611\uac19\uc740 \ub0b4\uc6a9\uc744 \ucd94\uac00\ud574\uc11c \ucd5c\uc885\uc801\uc73c\ub85c \ub2e4\uc74c\uacfc \uac19\uc774 \uc5c5\ub370\uc774\ud2b8 \ub418\uc5b4\uc57c \ud569\ub2c8\ub2e4.<\/p>\n<pre>&lt;VirtualHost _default_:443&gt;\r\n   &lt;Directory \"\/var\/www\/html\"&gt;\r\n      AllowOverride All\r\n   &lt;\/Directory&gt;\r\n   ...<\/pre>\n<p>\uc774\uc81c \uc6cc\ub4dc\ud504\ub808\uc2a4 \uc124\uc815\uc5d0\uc11c \uace0\uc720 \uc8fc\uc18c\ub97c post \uae30\ubc18\uc73c\ub85c \ubcc0\uacbd\ud558\uba74 \ub429\ub2c8\ub2e4. \uc774\ub807\uac8c \ubcc0\uacbd\ud558\uac8c \ub418\uba74 .htaccess \ud30c\uc77c\uc5d0 \uc9c1\uc811 \uc218\uc815\ud574\uc11c \ub123\uc73c\ub77c\uace0 \ud558\ub294 \uba85\ub839\uc5b4\uac00 \uc790\ub3d9 \uc785\ub825\ub429\ub2c8\ub2e4.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\uc6cc\ub4dc\ud504\ub808\uc2a4 \uace0\uc720 \uc8fc\uc18c(Permalink) \ubcc0\uacbd \ud6c4 404 \uc5d0\ub7ec \ud574\uacb0\ud558\ub294 \ubc95\uc744 \uc815\ub9ac\ud574 \ubcf4\uc558\uc2b5\ub2c8\ub2e4. \uac80\uc0c9\ud574 \ubcf4\ub2c8 .htaccess \uc774 \ud30c\uc77c\uc744 \uc9c1\uc811 \uc218\uc815\ud558\ub77c\uace0 \ud558\ub294\ub370 \uadf8\uac83\ubcf4\ub2e4\ub294 \ub77c\uc988\ubca0\ub9ac\ud30c\uc774 \ud648\ud398\uc774\uc9c0\uc5d0 \uc788\ub294 rewrite module\ub85c \ud574\uacb0\ud558\ub294 \ubc29\ubc95\uc744 \uc801\uc5b4\ubcf4\uc558\uc2b5\ub2c8\ub2e4.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_sitemap_exclude":false,"_sitemap_priority":"","_sitemap_frequency":""},"categories":[3],"tags":[215,212,213,211,339,214,106,210,30],"_links":{"self":[{"href":"https:\/\/mightyfriend.net\/index.php?rest_route=\/wp\/v2\/posts\/3181"}],"collection":[{"href":"https:\/\/mightyfriend.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mightyfriend.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mightyfriend.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mightyfriend.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3181"}],"version-history":[{"count":9,"href":"https:\/\/mightyfriend.net\/index.php?rest_route=\/wp\/v2\/posts\/3181\/revisions"}],"predecessor-version":[{"id":4979,"href":"https:\/\/mightyfriend.net\/index.php?rest_route=\/wp\/v2\/posts\/3181\/revisions\/4979"}],"wp:attachment":[{"href":"https:\/\/mightyfriend.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3181"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mightyfriend.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3181"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mightyfriend.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3181"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}