{"id":850,"date":"2016-04-16T21:30:25","date_gmt":"2016-04-16T20:30:25","guid":{"rendered":"http:\/\/axotron.se\/blog\/?p=850"},"modified":"2016-04-17T14:23:22","modified_gmt":"2016-04-17T13:23:22","slug":"wordpress-gives-403-forbidden-error-for-a-post-with-phpmyadm","status":"publish","type":"post","link":"https:\/\/axotron.se\/blog\/wordpress-gives-403-forbidden-error-for-a-post-with-phpmyadm\/","title":{"rendered":"WordPress gives 403 (forbidden) error for a post with &#8220;phpmyadmin&#8221; in the title"},"content":{"rendered":"<p>When I try to access a post with &#8220;phpmyadmin&#8221; in the title on my WordPress site, I get a 403 (forbidden) error. After digging around for a bit, I realized that the issue was in the permalink and that replacing &#8220;phpmyadmin&#8221; with &#8220;phpmyadm&#8221; made the post accessible again.<\/p>\n<p>After some more thinking I figured out that the reason was that I had set up a rule in apache\\conf\\httpd.conf to deny access to phpmyadmin from most IP-addresses. The rule looks like this:<\/p>\n<pre>&lt;Files \"*phpmyadmin*\"&gt;\r\n\u00a0 order deny,allow\r\n\u00a0 deny from all\r\n\u00a0 allow from 192.168.0.50\r\n\u00a0 allow from 127.0.0.1\r\n&lt;\/Files&gt;<\/pre>\n<p>So, this rule inadvertently triggered on the permalink and denied access to the post.<\/p>\n<p>Maybe someone else stumbles upon this problem and is able to google up this explanation and solution.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When I try to access a post with &#8220;phpmyadmin&#8221; in the title on my WordPress site, I get a 403 (forbidden) error. After digging around for a bit, I realized that the issue was in the permalink and that replacing &#8220;phpmyadmin&#8221; with &#8220;phpmyadm&#8221; made the post accessible again. After some more thinking I figured out &hellip; <a href=\"https:\/\/axotron.se\/blog\/wordpress-gives-403-forbidden-error-for-a-post-with-phpmyadm\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">WordPress gives 403 (forbidden) error for a post with &#8220;phpmyadmin&#8221; in the title<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-850","post","type-post","status-publish","format-standard","hentry","category-pc"],"_links":{"self":[{"href":"https:\/\/axotron.se\/blog\/wp-json\/wp\/v2\/posts\/850","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/axotron.se\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/axotron.se\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/axotron.se\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/axotron.se\/blog\/wp-json\/wp\/v2\/comments?post=850"}],"version-history":[{"count":5,"href":"https:\/\/axotron.se\/blog\/wp-json\/wp\/v2\/posts\/850\/revisions"}],"predecessor-version":[{"id":852,"href":"https:\/\/axotron.se\/blog\/wp-json\/wp\/v2\/posts\/850\/revisions\/852"}],"wp:attachment":[{"href":"https:\/\/axotron.se\/blog\/wp-json\/wp\/v2\/media?parent=850"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/axotron.se\/blog\/wp-json\/wp\/v2\/categories?post=850"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/axotron.se\/blog\/wp-json\/wp\/v2\/tags?post=850"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}