{"id":194,"date":"2014-07-22T10:54:24","date_gmt":"2014-07-22T01:54:24","guid":{"rendered":"https:\/\/pocolog.bass-world.net\/tech\/?p=194"},"modified":"2014-07-22T10:54:24","modified_gmt":"2014-07-22T01:54:24","slug":"wordpress-with-404-error","status":"publish","type":"post","link":"https:\/\/pocolog.bass-world.net\/tech\/2014\/wordpress-with-404-error\/","title":{"rendered":"WordPress\u3067\u500b\u5225\u30da\u30fc\u30b8\u306b\u884c\u304f\u3068404\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u4ef6"},"content":{"rendered":"\n<p>\u5f53\u521d\u3001\u30d1\u30fc\u30de\u30ea\u30f3\u30af\u8a2d\u5b9a\u3092\u300c\u6708\u3068\u6295\u7a3f\u540d\u300d\u306b\u3057\u3066\u3044\u307e\u3057\u305f\u3002<br>\u305d\u308c\u3067\u904b\u7528\u3057\u3066\u5168\u7136\u6c17\u3065\u3044\u3066\u306a\u304b\u3063\u305f\u3093\u3067\u3059\u3051\u3069\u3001\u500b\u5225\u30da\u30fc\u30b8\u306e\u30ea\u30f3\u30af\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u300c404\u30a8\u30e9\u30fc\u300d\u304c\u51fa\u3066\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u30b0\u30b0\u3063\u3066\u3082\u53c2\u8003\u306b\u306a\u308a\u305d\u3046\u306a\u30b5\u30a4\u30c8\u304c\u306a\u3044\u3001\u6700\u5f8c\u306e\u624b\u6bb5\u3067kawa\u541b\u306b\u76f8\u8ac7\u3057\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u30d1\u30fc\u30de\u30ea\u30f3\u30af\u8a2d\u5b9a\u3092\u30c7\u30d5\u30a9\u30eb\u30c8\u306b\u3057\u3066\u3057\u3070\u3089\u304f\u4f7f\u3063\u3066\u3044\u305f\u3093\u3067\u3059\u304c\u3001\u3084\u306f\u308a\u300c\u6708\u3068\u6295\u7a3f\u540d\u300d\u306b\u3057\u305f\u3044\u3002\u30cd\u30c3\u30c8\u3067\u691c\u7d22\u3057\u306a\u304a\u3057\u307e\u3057\u305f\u3002<br>\u4eca\u5ea6\u306f\u51fa\u3066\u304d\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"http:\/\/the-rich-boy.com\/richlife\/2013\/12\/wordpress\/#\">WordPress\u306e\u30d1\u30fc\u30de\u30ea\u30f3\u30af\u3092\u8a2d\u5b9a\u3057\u305f\u3089404\u30a8\u30e9\u30fc\u3067\u7126\u3063\u305f\u4ef6<\/a><\/li><\/ul>\n\n\n\n<p>\u79c1\u306e\u5834\u5408\u300c2. \u300chttpd.conf\u30d5\u30a1\u30a4\u30eb\u300d\u306b\u30b5\u30a4\u30c8\u3092\u914d\u7f6e\u3057\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u300cAllowOverride\u300d\u3092\u8ffd\u8a18\u300d\u306b\u5f53\u3066\u306f\u307e\u3063\u3066\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u4eca\u307e\u3067\u4ed5\u4e8b\u3067\u30b5\u30a4\u30c8\u7ba1\u7406\u8005\u3092\u3084\u3063\u3066\u3044\u3066\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u52dd\u624b\u306b.htaccess\u3067Includes\u306a\u3093\u304b\u3092\u4f7f\u308f\u308c\u305f\u3089\u305f\u307e\u3089\u3093\u3001\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u300cAllowOverride\u300d\u3092None\u306b\u8a2d\u5b9a\u3057\u3066\u3044\u307e\u3057\u305f\u3002<br>WordPress\u304c\u300c.htaccess\u306b\u8a2d\u5b9a\u3057\u3066\u304f\u308c\u300d\u3068\u8868\u793a\u3055\u308c\u305f\u6642\u70b9\u3067\u6c17\u3065\u304f\u3079\u304d\u3067\u3057\u305f\u3002<br>\u305d\u308c\u304c\u4eca\u56de\u306e\u539f\u56e0\u3001\u3068\u3002<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>\u4fee\u6b63\u3057\u305fhttpd.conf(\u6b63\u78ba\u306b\u306fconf.d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306eexample.conf)\u306f\u3001<\/p>\n\n\n\n<blockquote><pre><code>&lt;VirtualHost *:80&gt;\n  ServerName example.jp\n  ServerAlias *.example.jp\n  DocumentRoot \/home\/example\/www\/wordpress\n  ScriptAlias \/cgi-bin\/ \"\/home\/example\/cgi-bin\/\"\n  DirectoryIndex index.php\n  Options +IncludesNoExec\n  &lt;Directory \"\/home\/example\/www\/wordpress\"&gt;\n    AllowOverride All\n  &lt;\/Directory&gt;\n  &lt;Directory \/home\/example\/cgi-bin&gt;\n    AllowOverride None\n    Options ExecCGI\n    Order allow,deny\n    Allow from all\n  &lt;\/Directory&gt;\n  ErrorLog logs\/example.jp.error_log\n  CustomLog logs\/example.jp.access_log common\n&lt;\/VirtualHost&gt;<\/code><\/pre><\/blockquote>\n\n\n\n<p>\u3067\u3059\u3002<\/p>\n\n\n\n<p>.htaccess\u306e\u4e2d\u8eab\u306f\u3001<\/p>\n\n\n\n<blockquote><pre><code>RewriteEngine On\nRewriteBase \/\nRewriteRule ^index\\.php$ - [L]\n\n# add a trailing slash to \/wp-admin\nRewriteRule ^wp-admin$ wp-admin\/ [R=301,L]\n\nRewriteCond %{REQUEST_FILENAME} -f [OR]\nRewriteCond %{REQUEST_FILENAME} -d\nRewriteRule ^ - [L]\nRewriteRule ^(wp-(content|admin|includes).*) $1 [L]\nRewriteRule ^(.*\\.php)$ $1 [L]\nRewriteRule . index.php [L]<\/code><\/pre><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u5f53\u521d\u3001\u30d1\u30fc\u30de\u30ea\u30f3\u30af\u8a2d\u5b9a\u3092\u300c\u6708\u3068\u6295\u7a3f\u540d\u300d\u306b\u3057\u3066\u3044\u307e\u3057\u305f\u3002\u305d\u308c\u3067\u904b\u7528\u3057\u3066\u5168\u7136\u6c17\u3065\u3044\u3066\u306a\u304b\u3063\u305f\u3093\u3067\u3059\u3051\u3069\u3001\u500b\u5225\u30da\u30fc\u30b8\u306e\u30ea\u30f3\u30af\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u300c404\u30a8\u30e9\u30fc\u300d\u304c\u51fa\u3066\u307e\u3057\u305f\u3002 \u30b0\u30b0\u3063\u3066\u3082\u53c2\u8003\u306b\u306a\u308a\u305d\u3046\u306a\u30b5\u30a4\u30c8\u304c\u306a\u3044\u3001\u6700\u5f8c\u306e\u624b\u6bb5\u3067k &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/pocolog.bass-world.net\/tech\/2014\/wordpress-with-404-error\/\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;WordPress\u3067\u500b\u5225\u30da\u30fc\u30b8\u306b\u884c\u304f\u3068404\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u4ef6&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,6,10,12,16,17],"tags":[],"class_list":["post-194","post","type-post","status-publish","format-standard","hentry","category-apache","category-gmo-cloud","category-linux","category-php","category-wordpress","category-17"],"_links":{"self":[{"href":"https:\/\/pocolog.bass-world.net\/tech\/wp-json\/wp\/v2\/posts\/194","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pocolog.bass-world.net\/tech\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pocolog.bass-world.net\/tech\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pocolog.bass-world.net\/tech\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pocolog.bass-world.net\/tech\/wp-json\/wp\/v2\/comments?post=194"}],"version-history":[{"count":0,"href":"https:\/\/pocolog.bass-world.net\/tech\/wp-json\/wp\/v2\/posts\/194\/revisions"}],"wp:attachment":[{"href":"https:\/\/pocolog.bass-world.net\/tech\/wp-json\/wp\/v2\/media?parent=194"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pocolog.bass-world.net\/tech\/wp-json\/wp\/v2\/categories?post=194"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pocolog.bass-world.net\/tech\/wp-json\/wp\/v2\/tags?post=194"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}