{"id":10867570,"date":"2018-11-16T14:04:20","date_gmt":"2018-11-16T14:04:20","guid":{"rendered":"https:\/\/wordpress.org\/support\/?post_type=helphub_article&#038;p=10867570"},"modified":"2024-09-12T11:04:32","modified_gmt":"2024-09-12T02:04:32","slug":"using-permalinks","status":"publish","type":"helphub_article","link":"https:\/\/ja.wordpress.org\/support\/article\/using-permalinks\/","title":{"rendered":"\u30d1\u30fc\u30de\u30ea\u30f3\u30af\u306e\u4f7f\u3044\u65b9"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"> \u30d1\u30fc\u30de\u30ea\u30f3\u30af\u3068\u306f\u3001\u30d6\u30ed\u30b0\u306e\u500b\u3005\u306e\u6295\u7a3f\u3001\u30ab\u30c6\u30b4\u30ea\u30fc\u306a\u3069\u306e\u6295\u7a3f\u4e00\u89a7\u30da\u30fc\u30b8\u3078\u306e\u6052\u4e45\u7684 (\u534a\u6c38\u4e45\u7684) \u306a URL \u3067\u3059\u3002<br>\u30d1\u30fc\u30de\u30ea\u30f3\u30af\u306f\u3001\u4ed6\u306e\u30d6\u30ed\u30ac\u30fc\u304c\u3042\u306a\u305f\u306e\u8a18\u4e8b\u3084\u30bb\u30af\u30b7\u30e7\u30f3\u306b\u30ea\u30f3\u30af\u3092\u5f35\u308b\u3068\u304d\u3084\u3001\u6295\u7a3f\u3078\u306e\u30ea\u30f3\u30af\u3092 E\u30e1\u30fc\u30eb\u3067\u9001\u3063\u305f\u308a\u3059\u308b\u3068\u304d\u306b\u4f7f\u3044\u307e\u3059\u3002  <br>\u500b\u5225\u306e\u6295\u7a3f\u3078\u306e URL \u306f\u5e38\u306b\u5b58\u5728\u3057\u3066\u6c7a\u3057\u3066\u5909\u308f\u3089\u306a\u3044\u3088\u3046\u306b\u3059\u3079\u304d\u3067\u3059\u3002<br>\u305d\u306e\u305f\u3081\u3001\u300cperma\u300d\u30ea\u30f3\u30af\u3068\u547c\u3070\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"> \u30d1\u30fc\u30de\u30ea\u30f3\u30af\u306e\u5f62\u5f0f <\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"> WordPress \u306e\u57fa\u672c\u7684\u306a\u30d1\u30fc\u30de\u30ea\u30f3\u30af\u5f62\u5f0f\u306f\u4ee5\u4e0b\u306e3\u7a2e\u985e\u3067\u3059\u3002 <\/p>\n\n\n\n<h3 class=\"wp-block-heading\"> \u30c7\u30d5\u30a9\u30eb\u30c8\uff1a&#8221;Ugly&#8221;<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001\u6295\u7a3f ID \u304c&nbsp;N&nbsp;\u306e\u3068\u304d\u306b <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">http:\/\/example.com\/?p=N<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"> \u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002\u3059\u3079\u3066\u306e\u30b5\u30fc\u30d0\u74b0\u5883\u3067\u52d5\u304f\u3088\u3046\u306b\u3001\u65b0\u898f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u306f\u3053\u3046\u306a\u3063\u3066\u3044\u307e\u3059\u3002 <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">mod_rewrite: &#8220;Pretty \u30d1\u30fc\u30de\u30ea\u30f3\u30af&#8221;<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"> mod_rewrite \u3084 lighttpd \u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u3088\u308a\u826f\u3044\u30d1\u30fc\u30de\u30ea\u30f3\u30af\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059 (\u8a73\u3057\u304f\u306f <a href=\"\/support\/article\/introduction-to-blogging\/#pretty permalinks\">\u30d6\u30ed\u30b0\u5165\u9580<\/a> \u3092\u3054\u89a7\u304f\u3060\u3055\u3044)\u3002\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u306f\u69d8\u3005\u3067\u3059\u304c\u3001\u6700\u3082\u4e00\u822c\u7684\u3067\u6c4e\u7528\u6027\u304c\u9ad8\u3044\u306e\u306f\u6b21\u306e\u3088\u3046\u306a\u5f62\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">http:\/\/example.com\/2012\/post-name\/<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u3042\u308b\u3044\u306f<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">http:\/\/example.com\/2012\/12\/30\/post-name<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"> Pretty \u30d1\u30fc\u30de\u30ea\u30f3\u30af\u306f\u3001\u4ee5\u4e0b\u306e\u74b0\u5883\u3067\u5229\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<ul>\n<li>Apache\uff1amod_rewrite\u00a0\u30e2\u30b8\u30e5\u30fc\u30eb\u6709\u308a<\/li>\n\n\n\n<li>Nginx\uff1atry_files\u3092\u4f7f\u7528 (<a href=\"http:\/\/nginxlibrary.com\/wordpress-permalinks\/\">\u53c2\u8003\u30b5\u30a4\u30c8<\/a>)<\/li>\n\n\n\n<li><a href=\"https:\/\/www.hiawatha-webserver.org\/\">Hiawatha Web\u30b5\u30fc\u30d0\u30fc<\/a>\uff1aURL\u30ea\u30e9\u30a4\u30c6\u30a3\u30f3\u30b0\u304c\u6709\u52b9<\/li>\n\n\n\n<li>Lighttpd\uff1a<a href=\"http:\/\/chrisjohnston.org\/2009\/setting-up-a-wordpress-blog-on-lighttpd\">404 handler<\/a>\u00a0\u3042\u308b\u3044\u306f\u00a0mod_rewrite\u00a0\u3092\u4f7f\u7528 <\/li>\n\n\n\n<li>Caddy\uff1ausing rewrite (<a href=\"https:\/\/denbeke.be\/blog\/servers\/caddy-server-and-wordpress-php-fpm\/\">\u53c2\u8003\u30b5\u30a4\u30c8<\/a>)<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">PATHINFO: &#8220;Almost Pretty&#8221;<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">PATHINFO \u30d1\u30fc\u30de\u30ea\u30f3\u30af\u306f mod_rewrite \u30d1\u30fc\u30de\u30ea\u30f3\u30af\u306b\u3088\u304f\u4f3c\u3066\u3044\u307e\u3059 \u304c\u3001\u4e00\u3064\u3060\u3051\u4f8b\u5916\u304c\u3042\u308a\u3001\u6b21\u306e\u3088\u3046\u306a\u5f62\u3067\u9014\u4e2d\u306b \/index.php \u304c\u633f\u5165\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">http:\/\/example.com\/index.php\/yyyy\/mm\/dd\/post-name\/<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u305d\u308c\u4ee5\u5916\u306f &#8220;pretty&#8221; mod_rewrite \u3068\u5909\u308f\u308a\u306a\u304f\u3001\u67d4\u8edf\u3055\u3082\u540c\u3058\u3067\u3059\u3002<br>\/index.php \u306e\u90e8\u5206\u306e\u304a\u304b\u3052\u3067\u3001 mod_rewrite \u30d1\u30fc\u30de\u30ea\u30f3\u30af\u3067\u3067\u304d\u308b\u3053\u3068\u306f\u3001PATHINFO \u30d1\u30fc\u30de\u30ea\u30f3\u30af\u3067\u3082\u5b9f\u73fe\u53ef\u80fd\u3067\u3059\u3002 <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"choosing-your-permalink-structure\"> \u30d1\u30fc\u30de\u30ea\u30f3\u30af\u69cb\u9020\u306e\u9078\u629e<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u7ba1\u7406\u753b\u9762\u306e\u300c\u8a2d\u5b9a\u300d\u2192\u300c\u30d1\u30fc\u30de\u30ea\u30f3\u30af\u8a2d\u5b9a\u300d\u3067\u3001 \u4e00\u822c\u7684\u306a\u8a2d\u5b9a\u304b\u30891\u3064\u3092\u9078\u629e\u3059\u308b\u304b\u3001\u69cb\u9020\u30bf\u30b0\u3092\u4f7f\u7528\u3057\u3066\u300c\u30ab\u30b9\u30bf\u30e0\u69cb\u9020\u300d\u30d5\u30a3\u30fc\u30eb\u30c9\u306b\u8a18\u8ff0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>\u6ce8\uff1a<\/strong>  \u30d1\u30fc\u30de\u30ea\u30f3\u30af\u306e\u6b04\u306b\u306f\u3001\u30b5\u30a4\u30c8 URL \u3092\u6c7a\u3057\u3066\u5165\u308c\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002\u69cb\u6210\u30bf\u30b0\u3042\u308b\u3044\u306f\u69cb\u6210\u30bf\u30b0\u306e\u7d44\u307f\u5408\u308f\u305b\u306e\u307f\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">PATHINFO \u30d1\u30fc\u30de\u30ea\u30f3\u30af\u3092\u6709\u52b9\u306b\u3059\u308b\u306b\u306f\u3001\u30d1\u30fc\u30de\u30ea\u30f3\u30af\u69cb\u9020\u304c index.php\/ \u3067\u59cb\u307e\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u69cb\u9020\u30bf\u30b0<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">&#8220;Pretty&#8221; \u3042\u308b\u3044\u306f &#8220;Almost Pretty&#8221; \u30d1\u30fc\u30de\u30ea\u30f3\u30af\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3059\u308b\u305f\u3081\u306b\u3001\u4ee5\u4e0b\u306e\u69cb\u9020\u30bf\u30b0\u3092\u4f7f\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30d2\u30f3\u30c8<\/p>\n\n\n\n<ul>\n<li>\u30d1\u30fc\u30de\u30ea\u30f3\u30af\u306e\u6b04\u306b\u306f\u3001\u30b5\u30a4\u30c8 URL \u3092\u6c7a\u3057\u3066\u5165\u308c\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002\u69cb\u6210\u30bf\u30b0\u3042\u308b\u3044\u306f\u69cb\u6210\u30bf\u30b0\u306e\u7d44\u307f\u5408\u308f\u305b\u306e\u307f\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n\n\n\n<li>\u69cb\u9020\u306f\u5fc5\u305a \uff05post_id\uff05 \u3042\u308b\u3044\u306f \uff05postname\uff05 \u3067\u7d42\u4e86\u3057\u3001\u5404\u30d1\u30fc\u30de\u30ea\u30f3\u30af\u304c\u500b\u3005\u306e\u6295\u7a3f\u3092\u6307\u3059\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044 (\u4f8b \/\uff05year\uff05\/\uff05monthnum\uff05\/\uff05day\uff05\/\uff05postname\uff05\/ )\u3002<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>%year%<\/strong><br>\u6295\u7a3f\u3055\u308c\u305f\u5e74\u30924\u6841\u3067\u53d6\u5f97\u3057\u307e\u3059\u3002\u4f8b\u3048\u3070\u30012018\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>%monthnum%<br><\/strong>\u6295\u7a3f\u3055\u308c\u305f\u6708\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u4f8b\u3048\u3070\u300105\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>%day%<br><\/strong>\u6295\u7a3f\u3055\u308c\u305f\u65e5\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u4f8b\u3048\u3070\u300128\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>%hour%<br><\/strong>\u6295\u7a3f\u3055\u308c\u305f\u6642 (\u6642\u9593) \u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u4f8b\u3048\u3070\u300115\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>%minute%<br><\/strong>\u6295\u7a3f\u3055\u308c\u305f\u5206\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u4f8b\u3048\u3070\u300143\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>%second%<br><\/strong>\u6295\u7a3f\u3055\u308c\u305f\u79d2\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u4f8b\u3048\u3070\u300133\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>%post_id%<br><\/strong>\u6295\u7a3f\u306e\u56fa\u6709ID\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001423\u3067\u3059\u3002 <\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>%postname%<br><\/strong>\u6295\u7a3f\u540d (\u6295\u7a3f \/ \u56fa\u5b9a\u30da\u30fc\u30b8\u7de8\u96c6\u30d1\u30cd\u30eb\u306e\u30b9\u30e9\u30c3\u30b0) \u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u300cThis Is A Great Post!\u300d\u3068\u3044\u3046\u30bf\u30a4\u30c8\u30eb\u3067\u3042\u308c\u3070\u3001\u300cthis-is-a-great-post\u300d\u3068\u3044\u3046URI\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>%category%<br><\/strong>\u30ab\u30c6\u30b4\u30ea\u30fc\u540d (\u30ab\u30c6\u30b4\u30ea\u30fc\u65b0\u898f\u8ffd\u52a0 \/ \u7de8\u96c6\u30d1\u30cd\u30eb\u306e\u30b9\u30e9\u30c3\u30b0) \u3092\u53d6\u5f97\u3057\u307e\u3059\u3002\u30b5\u30d6\u30ab\u30c6\u30b4\u30ea\u30fc\u306f\u5165\u308c\u5b50\u306b\u306a\u3063\u305fURI\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>%author%<br><\/strong> \u6295\u7a3f\u306e\u4f5c\u6210\u8005\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"> \u30ab\u30c6\u30b4\u30ea\u30fc\u30d9\u30fc\u30b9\u3068\u30bf\u30b0\u30d9\u30fc\u30b9<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30ab\u30c6\u30b4\u30ea\u30fc\u30d9\u30fc\u30b9\u3068\u30bf\u30b0\u30d9\u30fc\u30b9\u306f\u3001\u30ab\u30c6\u30b4\u30ea\u30fc \/ \u30bf\u30b0\u30a2\u30fc\u30ab\u30a4\u30d6\u306e\u30d1\u30fc\u30de\u30ea\u30f3\u30af\u306e\u524d\u306b\u7f6e\u304b\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"> example.net\/wp\/category_base\/category_name\n example.net\/wp\/tag_base\/tag_name\n<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u30ab\u30c6\u30b4\u30ea\u30fc\u30d9\u30fc\u30b9\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u306f category \u3067\u3059\u3002\u30bf\u30b0\u30d9\u30fc\u30b9\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u306f tag \u3067\u3059\u3002\u5024\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u3059\u304c\u3001URL\u304b\u3089\u53d6\u308a\u9664\u304f\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u308c\u3089\u306e\u30d1\u30fc\u30de\u30ea\u30f3\u30af\u306f\u307b\u3068\u3093\u3069\u306e\u30b7\u30b9\u30c6\u30e0\u3067\u554f\u984c\u306a\u304f\u52d5\u4f5c\u3057\u307e\u3059\u304c\u3001\u554f\u984c\u304c\u751f\u3058\u308b\u74b0\u5883\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u8907\u6570\u30ab\u30c6\u30b4\u30ea\u306b\u3057\u305f\u6295\u7a3f\u306e %category% \u3068 %tag%<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"> \u4e00\u3064\u306e\u6295\u7a3f\u306b\u8907\u6570\u30ab\u30c6\u30b4\u30ea\u3092\u6307\u5b9a\u3057\u3066\u3044\u3066\u3082\u3001\u30d1\u30fc\u30de\u30ea\u30f3\u30af\u306b\u306f\u4e00\u3064\u3057\u304b\u8868\u793a\u3067\u304d\u307e\u305b\u3093\u3002\u30ab\u30c6\u30b4\u30ea\u306f\u30a2\u30eb\u30d5\u30a1\u30d9\u30c3\u30c8\u9806\u306b\u4e26\u3079\u3089\u308c\u3001\u30b5\u30d6\u30ab\u30c6\u30b4\u30ea\u306e\u5404\u30b0\u30eb\u30fc\u30d7\u3067\u3082\u30a2\u30eb\u30d5\u30a1\u30d9\u30c3\u30c8\u9806\u306b\u306a\u308a\u307e\u3059 (<a href=\"https:\/\/codex.wordpress.org\/Manage_Categories_SubPanel\">\u30ab\u30c6\u30b4\u30ea\u7ba1\u7406<\/a> \u53c2\u7167)\u3002\u6295\u7a3f\u306b\u306f\u3001\u3069\u306e\u30ab\u30c6\u30b4\u30ea\u304b\u3089\u3082\u30a2\u30af\u30bb\u30b9\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30d1\u30fc\u30de\u30ea\u30f3\u30af\u306b\u8868\u793a\u3059\u308b\u30ab\u30c6\u30b4\u30ea\u3092\u9078\u629e\u3059\u308b\u5834\u5408\u306f\u3001<a href=\"https:\/\/wordpress.org\/plugins\/wp-category-permalink\/\">WP Category Permalink<\/a> \u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u8a66\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">&#8220;Pretty&#8221; \u30d1\u30fc\u30de\u30ea\u30f3\u30af\u306e\u4f7f\u3044\u65b9<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u8981\u4ef6\uff1a<\/p>\n\n\n\n<ul>\n<li>mod_rewrite \u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305f Apache \u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc <\/li>\n\n\n\n<li>WordPress \u306e\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3067\u3001\n<ul>\n<li><a href=\"http:\/\/httpd.apache.org\/docs\/current\/mod\/core.html#options\">FollowSymLinks<\/a> \u30aa\u30d7\u30b7\u30e7\u30f3\u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u308b\u3002<\/li>\n\n\n\n<li><a href=\"http:\/\/httpd.apache.org\/docs\/current\/mod\/core.html#allowoverride\">FileInfo directives<\/a> \u304c\u8a31\u53ef\u3055\u308c\u3066\u3044\u308b (\u4f8b: AllowOverride FileInfo \u3042\u308b\u3044\u306f AllowOverride All)\u3002<\/li>\n\n\n\n<li>.htaccess \u30d5\u30a1\u30a4\u30eb\u304c\u5b58\u5728\u3059\u308b (\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u306f\u3001&#8221;pretty&#8221; \u30d1\u30fc\u30de\u30ea\u30f3\u30af\u3092\u6709\u52b9\u306b\u3057\u305f\u3068\u304d\u306b\u3001WordPress \u306f .htaccess \u30d5\u30a1\u30a4\u30eb\u4f5c\u6210\u3092\u8a66\u307f\u307e\u3059)\u3002<\/li>\n\n\n\n<li>.htaccess \u30d5\u30a1\u30a4\u30eb\u3092\u81ea\u52d5\u7684\u306b\u66f4\u65b0\u3059\u308b\u306b\u306f\u3001WordPress \u304c\u66f8\u304d\u8fbc\u307f\u6a29\u9650\u3092\u6301\u3063\u3066\u3044\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<ul>\n<li>\u512a\u308c\u305f\u540c\u6642\u5b9f\u884c\u6027\u3001\u9ad8\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3001\u4f4e\u3044\u30e1\u30e2\u30ea\u4f7f\u7528\u91cf\u3092\u76ee\u7684\u3068\u3057\u305fWeb\u30b5\u30fc\u30d0\u30fc\u3067\u3042\u308bnginx\u306e\u5834\u5408\u3001\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\u5185\u306b\u6b21\u306e location \u30d6\u30ed\u30c3\u30af\u3092\u8ffd\u52a0\u3057\u307e\u3059:<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">location \/ {<br>            try_files $uri $uri\/ \/index.php?$args;<br>}<\/pre>\n\n\n\n<ul>\n<li>\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306b\u91cd\u70b9\u3092\u7f6e\u3044\u305f<a href=\"https:\/\/www.hiawatha-webserver.org\/\">Hiawatha Web\u30b5\u30fc\u30d0\u30fc<\/a>\u306e\u5834\u5408\u306f\u3001\u6b21\u306eURL\u30c4\u30fc\u30eb\u30ad\u30c3\u30c8\u3092\u4f7f\u7528\u3057\u307e\u3059\uff1a<\/li>\n<\/ul>\n\n\n\n<pre class=\"wp-block-preformatted\">UrlToolkit {<br>    ToolkitID = wordpress<br>    RequestURI exists Return<br>    Match .*\\?(.*) Rewrite \/index.php?$1<br>    Match .* Rewrite \/index.php<br>}<\/pre>\n\n\n\n<ul>\n<li>WordPress\u3092\u30ed\u30fc\u30ab\u30eb\u3067\u5b9f\u884c\u3057\u3066\u3044\u308bMac\u30e6\u30fc\u30b6\u30fc\u306f\u3001httpd.conf\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304d\u3001 &#8220;\/ Library \/ WebServer \/ Documents&#8221; \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u5bfe\u3057\u3066\u3001AllowOverride \u3092 All \u306b\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002Mac OS X 10.5.x\u4ee5\u964d\u3067\u306f\u3001\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306f \/private\/etc\/apache2\/users\/[your-username].conf \u306b\u3042\u308a\u307e\u3059\u3002\u305d\u308c\u4ee5\u5916\u306e\u5834\u5408\u306f\u3001 \/ etc \/ httpd \/ httpd.conf \u306b\u3042\u308a\u307e\u3059\u3002 <\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">&#8220;pretty&#8221; \u30d1\u30fc\u30de\u30ea\u30f3\u30af\u69cb\u9020\u3092\u4f5c\u6210\u307e\u305f\u306f\u66f4\u65b0\u3059\u308b\u6642\u3001WordPress \u306f\u66f8\u304d\u63db\u3048\u898f\u5247\u3092\u751f\u6210\u3057\u3001.htaccess \u30d5\u30a1\u30a4\u30eb\u306e\u9069\u5207\u306a\u7b87\u6240\u306b\u633f\u5165\u3057\u307e\u3059\u3002\u633f\u5165\u3067\u304d\u306a\u304b\u3063\u305f\u5834\u5408\u3001\u300c.htaccess \u3092\u66f4\u65b0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u300d\u306e\u3088\u3046\u306a\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u3001\u30d5\u30a1\u30a4\u30eb\u306b\u30b3\u30d4\u30fc\uff06\u30da\u30fc\u30b9\u30c8\u3059\u308b (\u30d5\u30a1\u30a4\u30eb\u306e\u6700\u5f8c\u306b\u4ed8\u3051\u8db3\u3059) \u66f8\u304d\u63db\u3048\u898f\u5247\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">WordPress \u306f\u5185\u90e8\u3067\u66f8\u304d\u63db\u3048\u4f5c\u696d\u3092\u884c\u3046\u306e\u3067\u3001\u3053\u306e\u4f5c\u696d\u306f\u4e00\u5ea6\u884c\u3046\u3060\u3051\u3067\u6e08\u307f\u307e\u3059\u3002WordPress \u306e\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea (\u30b5\u30a4\u30c8\u30a2\u30c9\u30ec\u30b9) \u3092\u79fb\u52d5\u3055\u305b\u308b\u3068\u304d\u306f\u3001\u3053\u306e\u4f5c\u696d\u3092\u518d\u5ea6\u884c\u3046\u5fc5\u8981\u304c\u3042\u308b\u3067\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">WordPress \u306f\u65e2\u5b58\u306e .htaccess \u3068\u5171\u5b58\u3067\u304d\u307e\u3059\u3002\u65e2\u5b58\u306e\u66f8\u304d\u63db\u3048\u898f\u5247\u3084\u4ed6\u306e\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u3092\u524a\u9664\u3057\u307e\u305b\u3093\u3002\u4ed6\u306b mod_rewrite \u898f\u5247\u304c\u3042\u308b\u5834\u5408\u306f\u3001WordPress \u306e\u898f\u5247\u3088\u308a\u3082\u524d\u306b\u8a18\u8ff0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">.htaccess \u30d5\u30a1\u30a4\u30eb\u306f\u3069\u3053\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">WordPress \u306e index.php \u3068 .htaccess \u30d5\u30a1\u30a4\u30eb\u306f\u3001\u4e00\u822c\u8a2d\u5b9a\u306e\u30b5\u30a4\u30c8\u30a2\u30c9\u30ec\u30b9 (URL) \u3067\u6307\u5b9a\u3055\u308c\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u4e00\u7dd2\u306b\u7f6e\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u30d5\u30a1\u30a4\u30eb\u540d\u304c\u30c9\u30c3\u30c8\u3067\u59cb\u307e\u308b\u305f\u3081\u3001FTP\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u3067\u306f\u3001\u96a0\u3057\u30d5\u30a1\u30a4\u30eb\u3092\u542b\u3080\u5168\u30d5\u30a1\u30a4\u30eb\u3092\u8868\u793a\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u3066\u3044\u306a\u3044\u3068\u3001\u30d5\u30a1\u30a4\u30eb\u304c\u898b\u3048\u306a\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002 \u4e00\u90e8\u306e\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u30b5\u30fc\u30d3\u30b9 (\u4f8b: GoDaddy) \u3067\u306f\u3001GoDaddy \u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u63a5\u7d9a\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u5229\u7528\u3057\u3066 WordPress \u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u5834\u5408\u3001.htaccess \u304c\u8868\u793a\u3055\u308c\u305a\u3001\u7de8\u96c6\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">.htaccess\u306e\u4f5c\u6210\u3068\u7de8\u96c6<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">.htaccess \u30d5\u30a1\u30a4\u30eb\u304c\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u306f\u3001\u65b0\u898f\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u30b7\u30a7\u30eb\u3042\u308b\u3044\u306f ssh \u30a2\u30af\u30bb\u30b9\u3067\u30b5\u30fc\u30d0\u30fc\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u5834\u5408\u306f\u3001touch .htaccess \u30b3\u30de\u30f3\u30c9\u3067\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002FTP \u3092\u7528\u3044\u3066\u30d5\u30a1\u30a4\u30eb\u8ee2\u9001\u3059\u308b\u5834\u5408\u306f\u3001\u30ed\u30fc\u30ab\u30eb\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u4e0a\u3067 1.htaccess \u306e\u3088\u3046\u306a\u540d\u524d\u3067\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3001WordPress \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30eb\u30fc\u30c8\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u3001.htaccess \u306b\u30ea\u30cd\u30fc\u30e0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">.htaccess \u30d5\u30a1\u30a4\u30eb\u306f\u3001FTP\u3001\u30b7\u30a7\u30eb\u3001\u3042\u308b\u3044\u306f (\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308c\u3070) \u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u30b5\u30fc\u30d3\u30b9\u306e <a href=\"\/support\/article\/using-cpanel\/\">\u7ba1\u7406\u30d1\u30cd\u30eb<\/a> \u304b\u3089\u7de8\u96c6\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">.htaccess \u30d5\u30a1\u30a4\u30eb\u306b\u3001\u4ee5\u4e0b\u306e\u30ea\u30e9\u30a4\u30c8\u30b3\u30fc\u30c9\u304c\u8a18\u5165\u3055\u308c\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># BEGIN WordPress<br>&lt;IfModule mod_rewrite.c&gt;<br>RewriteEngine On<br>RewriteBase \/<br>RewriteRule ^index\\.php$ - [L]<br>RewriteCond&nbsp;%{REQUEST_FILENAME}&nbsp;!-f<br>RewriteCond&nbsp;%{REQUEST_FILENAME}&nbsp;!-d<br>RewriteRule . \/index.php [L]<br>&lt;\/IfModule&gt;<br># END WordPress<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">.htaccess \u30d5\u30a1\u30a4\u30eb\u306b\u30b5\u30a4\u30c8\u3092\u30c0\u30a6\u30f3\u3055\u305b\u308b\u30a8\u30e9\u30fc\uff08&#8221;Internal Server Error (500)&#8221;\uff09\u304c\u542b\u307e\u308c\u3066\u3044\u308b\u5834\u5408\u306f\u3001FTP \u307e\u305f\u306f\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u30b5\u30fc\u30d3\u30b9\u306e<a href=\"\/support\/article\/using-cpanel\/\">\u7ba1\u7406\u30d1\u30cd\u30eb<\/a> \u3092\u4f7f\u7528\u3057\u3066\u6b20\u9665\u306e\u3042\u308b .htaccess \u30d5\u30a1\u30a4\u30eb\u3092\u524a\u9664\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">.htaccess\u306e\u81ea\u52d5\u66f4\u65b0<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">WordPress \u304c .htaccess \u30d5\u30a1\u30a4\u30eb\u3092\u81ea\u52d5\u66f4\u65b0\u3067\u304d\u306a\u3044\u3068\u304d\u306f\u3001\u8a2d\u5b9a \u2192 \u30d1\u30fc\u30de\u30ea\u30f3\u30af\u753b\u9762\u306e\u4e0b\u90e8\u306b\u300c\u3042\u306a\u305f\u306e .htaccess \u304c\u66f8\u304d\u8fbc\u307f\u53ef\u80fd\u306a\u3089\u3053\u306e\u64cd\u4f5c\u306f\u81ea\u52d5\u7684\u306b\u884c\u308f\u308c\u307e\u3059\u304c\u3001\u305d\u3046\u3067\u306a\u3044\u5834\u5408\u306f\u2026\u300d\u3068\u3044\u3046\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">WordPress \u306b\u81ea\u52d5\u66f4\u65b0\u3055\u305b\u305f\u3044\u5834\u5408\u306f\u3001<a href=\"\/support\/article\/changing-file-permissions\/\">\u30d5\u30a1\u30a4\u30eb\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u306e\u5909\u66f4<\/a> \u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002 \u9069\u5207\u306a\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u306f\u3001\u304a\u4f7f\u3044\u306e\u30b5\u30fc\u30d0\u30fc\u306e\u8a2d\u5b9a\u306b\u3088\u3063\u3066\u7570\u306a\u308a\u307e\u3059\u3002\u307e\u305a\u306f\u6240\u6709\u8005\u306b\u66f8\u304d\u8fbc\u307f\u6a29\u9650\u3092\u4e0e\u3048\u3066\u8a66\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u99c4\u76ee\u306a\u3089\u6b21\u306f\u30b0\u30eb\u30fc\u30d7\u3001\u305d\u306e\u6b21\u306f\u5168\u30e6\u30fc\u30b6\u30fc\u306b\u66f8\u304d\u8fbc\u307f\u6a29\u9650\u3092\u4e0e\u3048\u3066\u8a66\u3057\u3066\u304f\u3060\u3055\u3044\u3002WordPress \u304c\u30d5\u30a1\u30a4\u30eb\u7de8\u96c6\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3089\u3001\u66f8\u304d\u8fbc\u307f\u6a29\u9650\u3092\u305d\u308c\u4ee5\u4e0a\u4ed8\u4e0e\u3057\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30d1\u30fc\u30de\u30ea\u30f3\u30af\u3092\u9069\u7528\u3057\u305f\u5f8c\u306f\u3001\u4ed6\u8005\u304c .htaccess \u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u306e\u3092\u9632\u3050\u305f\u3081\u306b\u3001660 \u3042\u308b\u3044\u306f 644 \u306e\u3088\u3046\u306a\u5236\u9650\u306e\u53b3\u3057\u3044\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u306b\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u30d1\u30fc\u30de\u30ea\u30f3\u30af\u306b\u3064\u3044\u3066\u306e\u554f\u984c\u70b9\u3068\u5bfe\u51e6\u6cd5<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">.htaccess \u751f\u6210\u6642\u306e\u554f\u984c<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">WordPress \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6642\u306b.htaccess \u30d5\u30a1\u30a4\u30eb\u304c\u751f\u6210\u3055\u308c\u306a\u3044\u5834\u5408\u3084\u3001\u65e2\u5b58\u306e .htaccess \u30d5\u30a1\u30a4\u30eb\u306b\u65b0\u3057\u3044\u898f\u5247\u304c\u8ffd\u52a0\u3055\u308c\u306a\u3044\u5834\u5408\u306f\u3001\u3044\u308d\u3044\u308d\u306a\u539f\u56e0\u304c\u8003\u3048\u3089\u308c\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u624b\u9806\u3092\u4e0a\u304b\u3089\u9806\u306b1\u3064\u305a\u3064\u3001\u554f\u984c\u304c\u89e3\u6c7a\u3057\u306a\u3044\u5834\u5408\u306e\u307f\u6b21\u306e\u30b9\u30c6\u30c3\u30d7\u306b\u9032\u3080\u65b9\u5f0f\u3067\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<ol>\n<li><strong>\u30d5\u30a1\u30a4\u30eb\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u306e\u5909\u66f4\uff1a<\/strong>WordPress \u30d3\u30eb\u30c8\u30a4\u30f3\u30a8\u30c7\u30a3\u30bf\u3067 .htaccess \u30d5\u30a1\u30a4\u30eb\u3092\u7de8\u96c6\u3059\u308b\u306b\u306f\u3001.htaccess \u306e\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3092 666 \u306b\u5909\u66f4\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u3053\u306e\u65b9\u6cd5\u306f\u304a\u85a6\u3081\u3067\u304d\u307e\u305b\u3093\u3002\u3042\u306a\u305f\u306e\u30d6\u30ed\u30b0\u306e\u30e6\u30fc\u30b6\u30fc\u3067\u3001\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u7de8\u96c6\u6a29\u9650\u3092\u6301\u3064\u30e6\u30fc\u30b6\u30fc\u306a\u3089\u8ab0\u3067\u3082 .htaccess \u3092\u7de8\u96c6\u3067\u304d\u3066\u3057\u307e\u3046\u304b\u3089\u3067\u3059\u3002\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3092\u30b5\u30fc\u30d0\u30fc\u304c\u66f8\u304d\u8fbc\u307f\u53ef\u80fd\u306a 660 \u306b\u5909\u66f4\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u304c\u3001\u540c\u69d8\u306e\u5236\u9650\u304c\u3042\u308a\u307e\u3059\u3002 <\/li>\n\n\n\n<li><strong>\u30b5\u30fc\u30d0\u30fc\u30d6\u30ed\u30c3\u30af\uff1a<\/strong>\u30db\u30b9\u30c6\u30a3\u30f3\u30b0\u30b5\u30fc\u30d3\u30b9\u306b\u3088\u3063\u3066 SERVER_SOFTWARE \u5909\u6570\u304c\u30d6\u30ed\u30c3\u30af\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001WordPress \u304c .htaccess \u3092\u751f\u6210\u3067\u304d\u3066\u3044\u306a\u3044\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002\u30b5\u30fc\u30d0\u30fc\u4e0a\u3067 Apache \u304c\u5b9f\u884c\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u78ba\u304b\u3067\u3042\u308c\u3070\u3001wp-includes\/vars.php \u30d5\u30a1\u30a4\u30eb\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u3067\u3001Apache \u304c\u5b9f\u884c\u3055\u308c\u3066\u3044\u308b\u3068 WordPress \u306b\u601d\u3044\u8fbc\u307e\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u5909\u66f4\u3092\u5b9f\u88c5\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u624b\u9806\u3092\u884c\u3063\u3066\u304f\u3060\u3055\u3044\u3002\n<ul>\n<li>WordPress \u7ba1\u7406\u30d1\u30cd\u30eb\u306e\u30d3\u30eb\u30c8\u30a4\u30f3\u30fb\u30a8\u30c7\u30a3\u30bf\u3092\u4f7f\u7528\u3057\u3066 wp-includes\/vars.php \u3092\u958b\u304d\u307e\u3059\u3002WordPress \u306b\u30ed\u30b0\u30a4\u30f3\u3057\u3001\u300c\u7ba1\u7406\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u3001\u300c\u30d5\u30a1\u30a4\u30eb\u300d\u3092\u30af\u30ea\u30c3\u30af\u3057\u3001\u753b\u9762\u3092\u4e0b\u307e\u3067\u30b9\u30af\u30ed\u30fc\u30eb\u3057\u3001\u300c\u305d\u306e\u4ed6\u306e\u30d5\u30a1\u30a4\u30eb\u300d\u30c6\u30ad\u30b9\u30c8\u30dc\u30c3\u30af\u30b9\u3067 wp-includes\/vars.php \u3068\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br>$is_apache = strstr($_SERVER[&#8216;SERVER_SOFTWARE&#8217;], &#8216;Apache&#8217;)\u00a0? 1\u00a0: 0;<br>\u3068\u3044\u3046\u90e8\u5206\u3092\u63a2\u3057\u3066\u3001<br>\/\/ $is_apache = strstr($_SERVER[&#8216;SERVER_SOFTWARE&#8217;], &#8216;Apache&#8217;)\u00a0? 1\u00a0: 0;<br>\u306b\u7f6e\u304d\u63db\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n\n\n\n<li>\u6b21\u306e\u90e8\u5206\u306e\u4e0b\u306b\u4e00\u884c\u8ffd\u52a0\u3057\u3001 <br>\/\/ $is_apache = strstr($_SERVER[&#8216;SERVER_SOFTWARE&#8217;], &#8216;Apache&#8217;)\u00a0? 1\u00a0: 0;<br>\u6b21\u306e\u3088\u3046\u306b\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br>$is_apache = 1;<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>XAMPP  (Windows)  \u3092\u5229\u7528\u3059\u308b\u5834\u5408:<\/strong> <a href=\"http:\/\/www.apachefriends.org\/en\/xampp.html\">XAMPP<\/a> \u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u3088\u3063\u3066\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f mod_rewrite \u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u307e\u305b\u3093 (Apache \u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u306f\u3055\u308c\u3066\u3044\u307e\u3059)\u3002mod_rewrite \u3092\u6709\u52b9\u306b\u3057\u3001WordPress \u304c pretty \u30d1\u30fc\u30de\u30ea\u30f3\u30af\u4f5c\u6210\u3059\u308b\u306e\u306b\u5fc5\u8981\u306a\u898f\u5247\u3092 .htaccess \u306b\u66f8\u304d\u8fbc\u307f\u3067\u304d\u308b\u3088\u3046\u306b\u3059\u308b\u306b\u306f\u3001apache\/conf\/httpd.conf \u3092\u958b\u304d\u3001LoadModule rewrite_module modules\/mod_rewrite.so \u306e\u884c\u306e\u30b3\u30e1\u30f3\u30c8\u3092\u5916\u3059 (\u884c\u982d\u306e\u300c#\u300d\u3092\u6d88\u3059) \u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li> <strong>WAMP (Windows) \u3092\u5229\u7528\u3059\u308b\u5834\u5408\uff1a<\/strong> WAMP\u306e\u3044\u304f\u3064\u304b\u306e\u30d0\u30fc\u30b8\u30e7\u30f3 (\u3059\u3079\u3066\u306e\u30d0\u30fc\u30b8\u30e7\u30f3 ?) \u3067\u306f\u3001 mod_rewrite \u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u304a\u3089\u305a\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\u304c\u8a31\u53ef\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002\u5fc5\u8981\u306a\u6a5f\u80fd\u3092\u6709\u52b9\u306b\u3059\u308b\u306b\u306f\u3001apache\/conf\/httpd.conf\u30d5\u30a1\u30a4\u30eb\u3092\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u3067\u958b\u3044\u3066\u3001LoadModule rewrite_module modules \/ mod_rewrite.so\u306e\u30b3\u30e1\u30f3\u30c8\u3092\u89e3\u9664\u3057\u307e\u3059 (\u884c\u982d\u306e\u300c#\u300d\u3092\u6d88\u3059)\u3002\u6b21\u306b\u3001\u540c\u3058\u30d5\u30a1\u30a4\u30eb\u306e\u3055\u3089\u306b\u4e0b\u306b\u3001\u300cOptions FollowSymlinks\u300d\u3068\u3044\u3046\u884c\u3067\u59cb\u307e\u308b\u30bb\u30af\u30b7\u30e7\u30f3\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u306e2\u884c\u76ee\u3092\u300cAllowOverride none\u300d\u304b\u3089\u300cAllowOverride all\u300d\u306b\u5909\u66f4\u3057\u307e\u3059\u3002\u7de8\u96c6\u3057\u305fhttpd.conf\u3092\u4fdd\u5b58\u3057\u3001\u3059\u3079\u3066\u306eWAMP\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u518d\u8d77\u52d5\u3057\u307e\u3059\u3002\u3053\u308c\u3067\u30d1\u30fc\u30de\u30ea\u30f3\u30af\u304c\u6a5f\u80fd\u3059\u308b\u306f\u305a\u3067\u3059\u3002<br><\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">\u30d2\u30f3\u30c8\u3068\u5c0f\u6280<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u30a2\u30fc\u30ab\u30a4\u30d6\u30ea\u30f3\u30af\u3068\u3057\u3066\u89e3\u91c8\u3055\u308c\u308b\u306e\u3092\u907f\u3051\u308b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e00\u65e5\u306b\u4e00\u6295\u7a3f\u3057\u304b\u516c\u958b\u3057\u306a\u3044\u306e\u3067 %year%%monthnum%%day% \u3068\u3044\u3046\u30d1\u30fc\u30de\u30ea\u30f3\u30af\u3092\u4f7f\u7528\u3057\u305f\u3044\u3068\u601d\u3046\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u3053\u306e\u30ea\u30f3\u30af\u306f\u305d\u306e\u65e5\u306e\u5168\u6295\u7a3f\u306e\u30a2\u30fc\u30ab\u30a4\u30d6\u3068\u3057\u3066\u751f\u6210\u3055\u308c\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u500b\u5225\u6295\u7a3f\u3078\u306e\u30ea\u30f3\u30af\u306f\u3001\u5c11\u306a\u304f\u3068\u3082 %year%%monthnum%%day%%hour% \u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30d1\u30fc\u30de\u30ea\u30f3\u30af\u69cb\u9020\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30d6\u30ed\u30b0\u306b\u30d1\u30fc\u30de\u30ea\u30f3\u30af\u69cb\u9020\u304c\u3042\u308b\u304b\u3069\u3046\u304b\u30c1\u30a7\u30c3\u30af\u3059\u308b\u306b\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;?php if ( get_option('permalink_structure') ) { echo 'permalinks enabled'; }&nbsp;?&gt;<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u53c2\u8003<\/h2>\n\n\n\n<ul>\n<li><a href=\"https:\/\/codex.wordpress.org\/User:Lazyking\/Using_Permalinks_(Saetta_Web_Server)\">User:Lazyking\/Using Permalinks (Saetta Web Server)<\/a><\/li>\n\n\n\n<li> \u4ed6\u306e\u6295\u7a3f\u3078\u30ea\u30f3\u30af\u3059\u308b\u65b9\u6cd5\u306f\u3001<a href=\"https:\/\/wpdocs.osdn.jp\/Linking_Posts_Pages_and_Categories\">\u6295\u7a3f\u30fb\u30da\u30fc\u30b8\u30fb\u30ab\u30c6\u30b4\u30ea\u30fc\u3078\u30ea\u30f3\u30af\u3059\u308b<\/a> \u306e\u8a18\u4e8b\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002 <\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<div style=\"height:var(--wp--preset--spacing--50)\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/wordpress.org\/documentation\/article\/customize-permalinks\/\" target=\"_blank\" rel=\"noreferrer noopener\">\u539f\u6587<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30d1\u30fc\u30de\u30ea\u30f3\u30af\u3068\u306f\u3001\u30d6\u30ed\u30b0\u306e\u500b\u3005\u306e\u6295\u7a3f\u3001\u30ab\u30c6\u30b4\u30ea\u30fc\u306a\u3069\u306e\u6295\u7a3f\u4e00\u89a7\u30da\u30fc\u30b8\u3078\u306e\u6052\u4e45\u7684 (\u534a\u6c38\u4e45\u7684) \u306a URL \u3067\u3059\u3002\u30d1\u30fc\u30de\u30ea\u30f3\u30af\u306f\u3001\u4ed6\u306e\u30d6\u30ed\u30ac\u30fc\u304c\u3042\u306a\u305f\u306e\u8a18\u4e8b\u3084\u30bb\u30af\u30b7\u30e7\u30f3\u306b\u30ea\u30f3\u30af\u3092\u5f35\u308b\u3068\u304d\u3084\u3001\u6295\u7a3f\u3078\u306e\u30ea\u30f3\u30af\u3092 E\u30e1\u30fc\u30eb\u3067\u9001\u3063 [&hellip;]<\/p>\n","protected":false},"author":148148,"featured_media":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","category":[26782],"class_list":["post-10867570","helphub_article","type-helphub_article","status-publish","hentry","category-basic-usage"],"revision_note":"","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/articles\/10867570","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/articles"}],"about":[{"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/types\/helphub_article"}],"author":[{"embeddable":true,"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/users\/148148"}],"replies":[{"embeddable":true,"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/comments?post=10867570"}],"version-history":[{"count":19,"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/articles\/10867570\/revisions"}],"predecessor-version":[{"id":11689098,"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/articles\/10867570\/revisions\/11689098"}],"wp:attachment":[{"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=10867570"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ja.wordpress.org\/support\/wp-json\/wp\/v2\/category?post=10867570"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}