{"id":4550,"date":"2018-09-13T07:00:23","date_gmt":"2018-09-13T14:00:23","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/blog\/?p=4550"},"modified":"2024-01-23T15:08:15","modified_gmt":"2024-01-23T20:08:15","slug":"avoid-errors-when-you-remove-a-wordpress-page-or-post","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/blog\/avoid-errors-when-you-remove-a-wordpress-page-or-post\/","title":{"rendered":"Avoid Errors When You Remove a WordPress Page or Post"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-4555 skip_lazy\" src=\"https:\/\/www.inmotionhosting.com\/blog\/wp-content\/uploads\/2018\/08\/avoidwperror.jpg\" alt=\"\nAvoid Errors When You Remove a WordPress Page or Post\n\" width=\"750\" height=\"422\" srcset=\"https:\/\/www.inmotionhosting.com\/blog\/wp-content\/uploads\/2018\/08\/avoidwperror.jpg 1008w, https:\/\/www.inmotionhosting.com\/blog\/wp-content\/uploads\/2018\/08\/avoidwperror-300x169.jpg 300w, https:\/\/www.inmotionhosting.com\/blog\/wp-content\/uploads\/2018\/08\/avoidwperror-768x432.jpg 768w, https:\/\/www.inmotionhosting.com\/blog\/wp-content\/uploads\/2018\/08\/avoidwperror-560x315.jpg 560w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><\/p>\n<p>As a business owner, you know that quality content is the key to getting search engine rankings and drawing in visitors. That means constantly updating blogs and articles to keep them fresh and relevant. Occasionally, this will require that you know how to delete a WordPress page. You may ask, <em>how can I delete a WordPress page and make sure people who go to that page don\u2019t get an error<\/em>?<\/p>\n<p>It can be frustrating when you really want to read an article, but the link is broken and gives an error. Today, we\u2019ll share information about the proper way to remove pages and prevent errors.<\/p>\n<h2>404 Errors<\/h2>\n<p>On the internet, nothing ever dies. What\u2019s that mean for you?<\/p>\n<p>It means that simply deleting a WordPress page is not enough. Once a link is out there, it\u2019s out there \u2013 search engines have indexed it, other pages may have linked to it, you probably shared it on your social media or in a newsletter.<\/p>\n<p>Unfortunately, when you delete a WordPress page or post, or even just rename it, that page or post is no longer accessible using that prior link or URL. When someone in your audience finds that old link and clicks on it, they\u2019re going to get a 404 error page: the dreaded \u201cpage not found. This creates a terrible customer experience and it\u2019s something that should never happen. Luckily, it\u2019s not overly difficult to solve this problem.<\/p>\n<h2>301 Redirects<\/h2>\n<p>A 301 redirect is a permanent redirect from one URL to another.<\/p>\n<p>This means when someone clicks on your old link, they\u2019ll be sent to a new location. From the internet user\u2019s standpoint, the whole thing is completely seamless: they click on a link and they\u2019re taken to a page. They never even know that they are being redirected.<\/p>\n<p>Where you choose to send your visitors is up to you: It might be an updated version of the same post or page, or it might be something completely different. Often, a business owner will choose to set up a special landing page just for 301 redirects. It will say something along the lines of, \u201cThe page you\u2019re looking for is no longer available, but here are some other articles we think you might find interesting.\u201d<\/p>\n<p>The key is to keep your audience interested and engaged without causing any frustration.<\/p>\n<h2>How Do I Setup a Redirect?<\/h2>\n<p>A 301 redirect is done by adding a special statement to your .htaccess file. Unless you are a web designer or developer, though, it\u2019s not recommended that you change that file on your own. Making just one error can cause serious damage to your website.<\/p>\n<p>Instead, there are several WordPress plugins available for 301 redirects. Two of them that we like are <a href=\"https:\/\/wordpress.org\/plugins\/simple-301-redirects\/\" target=\"_blank\" rel=\"noopener noreferrer\">Simple 301 Redirects<\/a> and <a href=\"https:\/\/wordpress.org\/plugins\/redirection\/\" target=\"_blank\" rel=\"noopener noreferrer\">Redirection<\/a>. Once a plugin is installed and active, you will see it added to your WordPress menu. From there, you simply put in the old URL and then put in the new one you\u2019d like to redirect to.<\/p>\n<h2>Testing Your Redirects<\/h2>\n<p>Never just assume that something works without testing it! Setting up a 301 redirect would be pointless if your audience is just going to end up with the same 404 error message.<\/p>\n<p>Luckily, testing your redirects is simple. Just go to a web browser and plug in the old permalink or URL. If it takes you to the new page, you know that your redirect is working. If you want to double check, there are lots of free redirect testing tools available on the internet. A quick Google search will bring up several including <a href=\"https:\/\/redirectcheck.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">Redirect Check<\/a>.<\/p>\n<p>If you find that it isn\u2019t working, make sure the plugin is properly installed.<\/p>\n<h2>A Note on SEO<\/h2>\n<p>While 404 errors don\u2019t officially hurt your SEO, they can affect it in several ways.<\/p>\n<ul>\n<li>Pages with 404 errors don\u2019t build page rank. When someone clicks on a link that doesn\u2019t go anywhere, Google can\u2019t calculate that page\u2019s value.<\/li>\n<li>Traffic linked to that page from external sources won\u2019t go anywhere.<\/li>\n<li>404 errors can lower your overall search traffic. If you have a link that was previously attracting 100 visitors a day, but now that link doesn\u2019t go anywhere, your traffic will be 100 visitors less.<\/li>\n<\/ul>\n<p>Knowing how to delete a WordPress page the right way is easy and worth the effort. Ultimately, it creates a better customer experience and keeps people coming back. On the plus side, it\u2019s not a tough fix once you know the process.<\/p>\n<p>Once you get all of your content updated, it&#8217;s time to work on your website speed. Consider <a href=\"https:\/\/www.inmotionhosting.com\/wordpress-hosting\">WordPress Hosting<\/a> for super fast speed and reliability.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As a business owner, you know that quality content is the key to getting search engine rankings and drawing in visitors. That means constantly updating blogs and articles to keep them fresh and relevant. Occasionally, this will require that you know how to delete a WordPress page. You may ask, how can I delete a<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/blog\/avoid-errors-when-you-remove-a-wordpress-page-or-post\/\"> Read More ><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[254,211],"tags":[],"class_list":["post-4550","post","type-post","status-publish","format-standard","hentry","category-tips-and-advice","category-wordpress"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Avoiding Errors When Removing a WordPress Page or Post<\/title>\n<meta name=\"description\" content=\"Learn how to effectively use redirects to help you avoid 404s and other errors when removing a page or post from your WordPress website.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.inmotionhosting.com\/blog\/avoid-errors-when-you-remove-a-wordpress-page-or-post\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Avoiding Errors When Removing a WordPress Page or Post\" \/>\n<meta property=\"og:description\" content=\"Learn how to effectively use redirects to help you avoid 404s and other errors when removing a page or post from your WordPress website.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/blog\/avoid-errors-when-you-remove-a-wordpress-page-or-post\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\" \/>\n<meta property=\"article:published_time\" content=\"2018-09-13T14:00:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-23T20:08:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.inmotionhosting.com\/blog\/wp-content\/uploads\/2018\/08\/avoidwperror.jpg\" \/>\n<meta name=\"author\" content=\"InMotion Hosting\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@inmotionhosting\" \/>\n<meta name=\"twitter:site\" content=\"@inmotionhosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"InMotion Hosting\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Avoiding Errors When Removing a WordPress Page or Post","description":"Learn how to effectively use redirects to help you avoid 404s and other errors when removing a page or post from your WordPress website.","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:\/\/www.inmotionhosting.com\/blog\/avoid-errors-when-you-remove-a-wordpress-page-or-post\/","og_locale":"en_US","og_type":"article","og_title":"Avoiding Errors When Removing a WordPress Page or Post","og_description":"Learn how to effectively use redirects to help you avoid 404s and other errors when removing a page or post from your WordPress website.","og_url":"https:\/\/www.inmotionhosting.com\/blog\/avoid-errors-when-you-remove-a-wordpress-page-or-post\/","og_site_name":"InMotion Hosting Blog","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting","article_published_time":"2018-09-13T14:00:23+00:00","article_modified_time":"2024-01-23T20:08:15+00:00","og_image":[{"url":"https:\/\/www.inmotionhosting.com\/blog\/wp-content\/uploads\/2018\/08\/avoidwperror.jpg","type":"","width":"","height":""}],"author":"InMotion Hosting","twitter_card":"summary_large_image","twitter_creator":"@inmotionhosting","twitter_site":"@inmotionhosting","twitter_misc":{"Written by":"InMotion Hosting","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"TechArticle","@id":"https:\/\/www.inmotionhosting.com\/blog\/avoid-errors-when-you-remove-a-wordpress-page-or-post\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/blog\/avoid-errors-when-you-remove-a-wordpress-page-or-post\/"},"author":{"name":"InMotion Hosting","@id":"https:\/\/www.inmotionhosting.com\/blog\/#\/schema\/person\/f21a89c83c7697a760c96cfe58e646bc"},"headline":"Avoid Errors When You Remove a WordPress Page or Post","datePublished":"2018-09-13T14:00:23+00:00","dateModified":"2024-01-23T20:08:15+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/blog\/avoid-errors-when-you-remove-a-wordpress-page-or-post\/"},"wordCount":786,"commentCount":0,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/blog\/avoid-errors-when-you-remove-a-wordpress-page-or-post\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/blog\/wp-content\/uploads\/2018\/08\/avoidwperror.jpg","articleSection":["Tips and Advice","WordPress Articles"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/blog\/avoid-errors-when-you-remove-a-wordpress-page-or-post\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/blog\/avoid-errors-when-you-remove-a-wordpress-page-or-post\/","url":"https:\/\/www.inmotionhosting.com\/blog\/avoid-errors-when-you-remove-a-wordpress-page-or-post\/","name":"Avoiding Errors When Removing a WordPress Page or Post","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/blog\/avoid-errors-when-you-remove-a-wordpress-page-or-post\/#primaryimage"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/blog\/avoid-errors-when-you-remove-a-wordpress-page-or-post\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/blog\/wp-content\/uploads\/2018\/08\/avoidwperror.jpg","datePublished":"2018-09-13T14:00:23+00:00","dateModified":"2024-01-23T20:08:15+00:00","description":"Learn how to effectively use redirects to help you avoid 404s and other errors when removing a page or post from your WordPress website.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/blog\/avoid-errors-when-you-remove-a-wordpress-page-or-post\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/blog\/avoid-errors-when-you-remove-a-wordpress-page-or-post\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/blog\/avoid-errors-when-you-remove-a-wordpress-page-or-post\/#primaryimage","url":"https:\/\/www.inmotionhosting.com\/blog\/wp-content\/uploads\/2018\/08\/avoidwperror.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/blog\/wp-content\/uploads\/2018\/08\/avoidwperror.jpg","width":1008,"height":567},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/blog\/avoid-errors-when-you-remove-a-wordpress-page-or-post\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"WordPress Articles","item":"https:\/\/www.inmotionhosting.com\/blog\/wordpress\/"},{"@type":"ListItem","position":3,"name":"Avoid Errors When You Remove a WordPress Page or Post"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/blog\/#website","url":"https:\/\/www.inmotionhosting.com\/blog\/","name":"InMotion Hosting Blog","description":"Web Hosting Strategy, Trends and Security","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/blog\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/blog\/wp-content\/uploads\/2019\/11\/imh-logo-all-colors-big.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/blog\/wp-content\/uploads\/2019\/11\/imh-logo-all-colors-big.jpg","width":1630,"height":430,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting","https:\/\/x.com\/inmotionhosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/blog\/#\/schema\/person\/f21a89c83c7697a760c96cfe58e646bc","name":"InMotion Hosting","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/eb965eada0c0513dd2e1976b21fe270fa4f19ac273960fc080f9d46b81b353a4?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/eb965eada0c0513dd2e1976b21fe270fa4f19ac273960fc080f9d46b81b353a4?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/eb965eada0c0513dd2e1976b21fe270fa4f19ac273960fc080f9d46b81b353a4?s=96&r=g","caption":"InMotion Hosting"},"url":"https:\/\/www.inmotionhosting.com\/blog\/author\/imhmainadmin\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":{"id":211,"name":"WordPress Articles","slug":"wordpress","link":"https:\/\/www.inmotionhosting.com\/blog\/wordpress\/"},"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/blog\/wp-json\/wp\/v2\/posts\/4550","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/blog\/wp-json\/wp\/v2\/comments?post=4550"}],"version-history":[{"count":8,"href":"https:\/\/www.inmotionhosting.com\/blog\/wp-json\/wp\/v2\/posts\/4550\/revisions"}],"predecessor-version":[{"id":73225,"href":"https:\/\/www.inmotionhosting.com\/blog\/wp-json\/wp\/v2\/posts\/4550\/revisions\/73225"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/blog\/wp-json\/wp\/v2\/media?parent=4550"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/blog\/wp-json\/wp\/v2\/categories?post=4550"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/blog\/wp-json\/wp\/v2\/tags?post=4550"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}