{"id":2584,"date":"2014-02-13T13:32:03","date_gmt":"2014-02-13T13:32:03","guid":{"rendered":"http:\/\/www.bargh.co.uk\/blog\/?p=1841"},"modified":"2014-02-13T13:32:03","modified_gmt":"2014-02-13T13:32:03","slug":"permalink-changes-lock-you-out-of-wordpress-admin","status":"publish","type":"post","link":"https:\/\/bargh.co.uk\/blog\/permalink-changes-lock-you-out-of-wordpress-admin\/","title":{"rendered":"Permalink changes lock you out of WordPress Admin?"},"content":{"rendered":"<p>I had this problem and couldn&#8217;t work out what I&#8217;d done wrong<\/p>\n<p>I installed WordPress in a .com\/blog directory<\/p>\n<p>It all went well. I could log in to admin and I could see the live blog. Then I went into Settings&gt;Permalinks to change Default to Post Name and then when I saved changes I was directed to the log in page and the log in no longer let me in&#8230;and the public side didn&#8217;t work either.<\/p>\n<p>If this happens to you it&#8217;s likely there&#8217;s something wrong with the .htaccess file and here&#8217;s a quick fix<\/p>\n<p>delete your current .htaccess in the \/blog directory<br \/>\nupload a new blank replacement .htaccess<br \/>\nset chmod permissions to 666<br \/>\nLog in to wp-admin and set permalinks to desired url structure<br \/>\nReturn to .htaccess file and set permissions\u00a0back to 644 for security<\/p>\n<p>It should now work correctly<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I had this problem and couldn&#8217;t work out what I&#8217;d done wrong I installed WordPress in a .com\/blog directory It all went well. I could log in to admin and I could see the live blog. Then I went into Settings&gt;Permalinks to change Default to Post Name and then when I saved changes I was [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1296,1300],"tags":[1402,1488,1724,1940,1941,2304],"class_list":["post-2584","post","type-post","status-publish","format-standard","hentry","category-helping-hand","category-web-development","tag-blog","tag-chmod","tag-htaccess","tag-permalinks","tag-permissions","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/bargh.co.uk\/blog\/wp-json\/wp\/v2\/posts\/2584","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bargh.co.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bargh.co.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bargh.co.uk\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bargh.co.uk\/blog\/wp-json\/wp\/v2\/comments?post=2584"}],"version-history":[{"count":0,"href":"https:\/\/bargh.co.uk\/blog\/wp-json\/wp\/v2\/posts\/2584\/revisions"}],"wp:attachment":[{"href":"https:\/\/bargh.co.uk\/blog\/wp-json\/wp\/v2\/media?parent=2584"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bargh.co.uk\/blog\/wp-json\/wp\/v2\/categories?post=2584"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bargh.co.uk\/blog\/wp-json\/wp\/v2\/tags?post=2584"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}