{"id":155,"date":"2009-02-18T08:30:16","date_gmt":"2009-02-18T14:30:16","guid":{"rendered":"http:\/\/credible-content.com\/blog\/wordpress-htaccess\/"},"modified":"2009-02-18T08:30:16","modified_gmt":"2009-02-18T14:30:16","slug":"wordpress-htaccess","status":"publish","type":"post","link":"https:\/\/credible-content.com\/blog\/wordpress-htaccess\/","title":{"rendered":"Be careful about changing the .htaccess if you manage your website with WordPress"},"content":{"rendered":"<p>I had a customized .htaccess for my website so that all the old links could be 301-redirected to the new links once the website was fully ported to <a title=\"WordPress\" href=\"http:\/\/wordpress.org\" target=\"_blank\" rel=\"nofollow\">WordPress<\/a>, and things worked great. I uploaded all the content, the .htaccess file, activated my theme, and changed the permalink structure to make the URLs SEO-friendly.<\/p>\n<p>After a few days I was checking Google analytics, and noticed that some links that didn\u2019t exist in the main navigation, but existed on the inner pages, were not being found, and needed to be redirected. I quickly added them to my .htaccess file and re-uploaded the file. After a few hours I noticed none of my pages worked. I remember this happening once, so I went to the permalinks section in the WordPress admin and again saved the permalinks setting. The links started working again.<\/p>\n<p>Then today again I uploaded the .htaccess file and noticed that the website stopped working. Again I went to the permalinks section, saved the permalinks setting and the pages came back. Then it came to my mind that whenever you make changes to the permalinks structure, WordPress changes your .htaccess file. So whenever I was uploading my version of .htaccess, the changes were being overwritten, and the pages refused to work. Dumb of me actually.<\/p>\n<p>So now after saving the permalinks settings I have downloaded .htaccess. Whatever changes I have to make, I\u2019ll make in this file, without overwriting the WordPress settings for handling permalinks. Small oversights can cost you big time sometimes!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I had a customized .htaccess for my website so that all the old links could be 301-redirected to the new links once the website was fully ported to WordPress, and&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,4],"tags":[],"class_list":["post-155","post","type-post","status-publish","format-standard","hentry","category-about-work","category-business-development"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Be careful about changing the .htaccess if you manage your website with WordPress - Credible Content Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/credible-content.com\/blog\/wordpress-htaccess\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Be careful about changing the .htaccess if you manage your website with WordPress - Credible Content Blog\" \/>\n<meta property=\"og:description\" content=\"I had a customized .htaccess for my website so that all the old links could be 301-redirected to the new links once the website was fully ported to WordPress, and...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/credible-content.com\/blog\/wordpress-htaccess\/\" \/>\n<meta property=\"og:site_name\" content=\"Credible Content Writing &amp; SEO Copywriting Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/CredibleContent\" \/>\n<meta property=\"article:author\" content=\"http:\/\/facebook.com\/amrithallan\" \/>\n<meta property=\"article:published_time\" content=\"2009-02-18T14:30:16+00:00\" \/>\n<meta name=\"author\" content=\"Amrit Hallan\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@amrithallan\" \/>\n<meta name=\"twitter:site\" content=\"@ContentGyan\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Amrit Hallan\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/credible-content.com\/blog\/wordpress-htaccess\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/credible-content.com\/blog\/wordpress-htaccess\/\"},\"author\":{\"name\":\"Amrit Hallan\",\"@id\":\"https:\/\/credible-content.com\/blog\/#\/schema\/person\/ca0b0af763e9f25438545eee2a328607\"},\"headline\":\"Be careful about changing the .htaccess if you manage your website with WordPress\",\"datePublished\":\"2009-02-18T14:30:16+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/credible-content.com\/blog\/wordpress-htaccess\/\"},\"wordCount\":268,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\/\/credible-content.com\/blog\/#organization\"},\"articleSection\":[\"About Work\",\"Business Development\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/credible-content.com\/blog\/wordpress-htaccess\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/credible-content.com\/blog\/wordpress-htaccess\/\",\"url\":\"https:\/\/credible-content.com\/blog\/wordpress-htaccess\/\",\"name\":\"Be careful about changing the .htaccess if you manage your website with WordPress - Credible Content Blog\",\"isPartOf\":{\"@id\":\"https:\/\/credible-content.com\/blog\/#website\"},\"datePublished\":\"2009-02-18T14:30:16+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/credible-content.com\/blog\/wordpress-htaccess\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/credible-content.com\/blog\/wordpress-htaccess\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/credible-content.com\/blog\/wordpress-htaccess\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/credible-content.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Be careful about changing the .htaccess if you manage your website with WordPress\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/credible-content.com\/blog\/#website\",\"url\":\"https:\/\/credible-content.com\/blog\/\",\"name\":\"Credible Content Writing &amp; SEO Copywriting Blog\",\"description\":\"Looking for insightful blog posts on content writing, and SEO copywriting? You will find them on Credible Content Blog. Updated almost daily. Fresh, unique perspective.\",\"publisher\":{\"@id\":\"https:\/\/credible-content.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/credible-content.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/credible-content.com\/blog\/#organization\",\"name\":\"Credible Content Blog\",\"url\":\"https:\/\/credible-content.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/credible-content.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/credible-content.com\/blog\/wp-content\/uploads\/2017\/08\/favicon.png\",\"contentUrl\":\"https:\/\/credible-content.com\/blog\/wp-content\/uploads\/2017\/08\/favicon.png\",\"width\":64,\"height\":64,\"caption\":\"Credible Content Blog\"},\"image\":{\"@id\":\"https:\/\/credible-content.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/CredibleContent\",\"https:\/\/x.com\/ContentGyan\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/credible-content.com\/blog\/#\/schema\/person\/ca0b0af763e9f25438545eee2a328607\",\"name\":\"Amrit Hallan\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/credible-content.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/01934511b40b5cdd1de173ca248ca67683477b23e1f93def6bd8c9ff9a9665f7?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/01934511b40b5cdd1de173ca248ca67683477b23e1f93def6bd8c9ff9a9665f7?s=96&d=mm&r=g\",\"caption\":\"Amrit Hallan\"},\"description\":\"Amrit Hallan is a professional content writer who helps businesses improve their conversion rate through credible and compelling content writing. His main strength lies in writing search engine optimized content without compromizing quality and meaningfulness.\",\"sameAs\":[\"https:\/\/credible-content.com\",\"http:\/\/facebook.com\/amrithallan\",\"https:\/\/x.com\/amrithallan\"],\"url\":\"https:\/\/credible-content.com\/blog\/author\/amrithallan\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Be careful about changing the .htaccess if you manage your website with WordPress - Credible Content Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/credible-content.com\/blog\/wordpress-htaccess\/","og_locale":"en_US","og_type":"article","og_title":"Be careful about changing the .htaccess if you manage your website with WordPress - Credible Content Blog","og_description":"I had a customized .htaccess for my website so that all the old links could be 301-redirected to the new links once the website was fully ported to WordPress, and...","og_url":"https:\/\/credible-content.com\/blog\/wordpress-htaccess\/","og_site_name":"Credible Content Writing &amp; SEO Copywriting Blog","article_publisher":"https:\/\/www.facebook.com\/CredibleContent","article_author":"http:\/\/facebook.com\/amrithallan","article_published_time":"2009-02-18T14:30:16+00:00","author":"Amrit Hallan","twitter_card":"summary_large_image","twitter_creator":"@amrithallan","twitter_site":"@ContentGyan","twitter_misc":{"Written by":"Amrit Hallan","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/credible-content.com\/blog\/wordpress-htaccess\/#article","isPartOf":{"@id":"https:\/\/credible-content.com\/blog\/wordpress-htaccess\/"},"author":{"name":"Amrit Hallan","@id":"https:\/\/credible-content.com\/blog\/#\/schema\/person\/ca0b0af763e9f25438545eee2a328607"},"headline":"Be careful about changing the .htaccess if you manage your website with WordPress","datePublished":"2009-02-18T14:30:16+00:00","mainEntityOfPage":{"@id":"https:\/\/credible-content.com\/blog\/wordpress-htaccess\/"},"wordCount":268,"commentCount":1,"publisher":{"@id":"https:\/\/credible-content.com\/blog\/#organization"},"articleSection":["About Work","Business Development"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/credible-content.com\/blog\/wordpress-htaccess\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/credible-content.com\/blog\/wordpress-htaccess\/","url":"https:\/\/credible-content.com\/blog\/wordpress-htaccess\/","name":"Be careful about changing the .htaccess if you manage your website with WordPress - Credible Content Blog","isPartOf":{"@id":"https:\/\/credible-content.com\/blog\/#website"},"datePublished":"2009-02-18T14:30:16+00:00","breadcrumb":{"@id":"https:\/\/credible-content.com\/blog\/wordpress-htaccess\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/credible-content.com\/blog\/wordpress-htaccess\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/credible-content.com\/blog\/wordpress-htaccess\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/credible-content.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Be careful about changing the .htaccess if you manage your website with WordPress"}]},{"@type":"WebSite","@id":"https:\/\/credible-content.com\/blog\/#website","url":"https:\/\/credible-content.com\/blog\/","name":"Credible Content Writing &amp; SEO Copywriting Blog","description":"Looking for insightful blog posts on content writing, and SEO copywriting? You will find them on Credible Content Blog. Updated almost daily. Fresh, unique perspective.","publisher":{"@id":"https:\/\/credible-content.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/credible-content.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/credible-content.com\/blog\/#organization","name":"Credible Content Blog","url":"https:\/\/credible-content.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/credible-content.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/credible-content.com\/blog\/wp-content\/uploads\/2017\/08\/favicon.png","contentUrl":"https:\/\/credible-content.com\/blog\/wp-content\/uploads\/2017\/08\/favicon.png","width":64,"height":64,"caption":"Credible Content Blog"},"image":{"@id":"https:\/\/credible-content.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/CredibleContent","https:\/\/x.com\/ContentGyan"]},{"@type":"Person","@id":"https:\/\/credible-content.com\/blog\/#\/schema\/person\/ca0b0af763e9f25438545eee2a328607","name":"Amrit Hallan","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/credible-content.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/01934511b40b5cdd1de173ca248ca67683477b23e1f93def6bd8c9ff9a9665f7?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/01934511b40b5cdd1de173ca248ca67683477b23e1f93def6bd8c9ff9a9665f7?s=96&d=mm&r=g","caption":"Amrit Hallan"},"description":"Amrit Hallan is a professional content writer who helps businesses improve their conversion rate through credible and compelling content writing. His main strength lies in writing search engine optimized content without compromizing quality and meaningfulness.","sameAs":["https:\/\/credible-content.com","http:\/\/facebook.com\/amrithallan","https:\/\/x.com\/amrithallan"],"url":"https:\/\/credible-content.com\/blog\/author\/amrithallan\/"}]}},"_links":{"self":[{"href":"https:\/\/credible-content.com\/blog\/wp-json\/wp\/v2\/posts\/155","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/credible-content.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/credible-content.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/credible-content.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/credible-content.com\/blog\/wp-json\/wp\/v2\/comments?post=155"}],"version-history":[{"count":0,"href":"https:\/\/credible-content.com\/blog\/wp-json\/wp\/v2\/posts\/155\/revisions"}],"wp:attachment":[{"href":"https:\/\/credible-content.com\/blog\/wp-json\/wp\/v2\/media?parent=155"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/credible-content.com\/blog\/wp-json\/wp\/v2\/categories?post=155"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/credible-content.com\/blog\/wp-json\/wp\/v2\/tags?post=155"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}