Title: Delete AMP Problems
Last modified: April 26, 2022

---

# Delete AMP Problems

 *  Resolved [bitcoincasino666](https://wordpress.org/support/users/bitcoincasino666/)
 * (@bitcoincasino666)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/delete-amp-problems/)
 * Hi
 * I want to delete the AMP plugin and have switched on in setting to delete all
   data but when I did it and then added the following code to my ht.access to redirect
   the amp pages it caused a 500 internal error and had to reset the website.
 * This was what I added to ht.access
 * // Redirect AMP to non-AMP
    RewriteEngine On RewriteCond %{REQUEST_URI} (.+)/
   amp(.*)$ RewriteRule ^ %1/ [R=301,L]
 * It caused a problem with yoast, which you can see below so can someone tell me
   what I am doing wrong and the best alongwith safest way of deleting amp and redirecting
   it. Also I have web stories, if I redirect amp will it effect that plugin?
 * [Mon Apr 25 21:26:40.366699 2022] [proxy_fcgi:error] [pid 26423:tid 140603950040832][
   client 66.249.70.122:26614] AH01071: Got error ‘l, yoast_breadcrumb, WPSEO_Breadcrumbs::
   breadcrumb, WPSEO_Breadcrumbs->render, Yoast\\WP\\SEO\\Presenters\\Breadcrumbs_Presenter-
   >present, Yoast\\WP\\SEO\\Presenters\\Breadcrumbs_Presenter->get, Yoast\\WP\\
   SEO\\Presentations\\Abstract_Presentation->__get, Yoast\\WP\\SEO\\Presentations\\
   Indexable_Presentation->generate_breadcrumbs, Yoast\\WP\\SEO\\Generators\\Breadcrumbs_Generator-
   >generate,…PHP message: WordPress database error Table ‘khytrmnsvp.wp_yoast_indexable’
   doesn’t exist for query SELECT * FROM `wp_yoast_indexable` WHERE `object_id` 
   = ‘1’ AND `object_type` = ‘user’ LIMIT 1 made by require(‘wp-blog-header.php’),
   require_once(‘wp-includes/template-loader.php’), include(‘/themes/oceanwp/404.
   php’), get_header, locate_template, load_template, require_once(‘/themes/oceanwp/
   header.php’), do_action(‘ocean_page_header’), WP_Hook->do_action, WP_Hook->apply_filters,
   oceanwp_page_header_template, get_template_part, locate_template, load_template,
   require(‘/themes/oceanwp/partials/page-header.php’), oceanwp_breadcrumb_trail,
   yoast_breadcrumb, WPSEO_Breadcrumbs::breadcrumb, WPSEO_Breadcrumbs->render, Yoast\\
   WP\\SEO\\Presenters\\Breadcrumbs_Presenter->present, Yoast\\WP\\SEO\\Presenters\\
   Breadcrumbs_Presenter->get, Yoast\\WP\\SEO\\Presentations\\Abstract_Presentation-
   >__get, Yoast\\WP\\SEO\\Presentations\\Indexable_Presentation->generate_breadcrumbs,
   Yoast\\WP\\SEO\\Generators\\Breadcrumbs_Generator->generate,…PHP message: WordPress
   database error Table ‘khytrmnsvp.wp_posts’ doesn’t exist for query \n\t\t\tSELECT
   MAX(p.post_modified_gmt) AS last_modified, MIN(p.post_date_gmt) AS published_at\
   n\t\t\tFROM wp_posts AS p\n\t\t\tWHERE p.post_status IN (‘publish’)\n\t\t\t\tAND
   p.post_password = ”\n\t\t\t\tAND p.post_author = 1\n\t\t made by require(‘wp-
   blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/
   themes/oceanwp/404.php’), get_header, locate_template, load_template, require_once(‘/
   themes/oceanwp/header.php’), do_action(‘ocean_page_header’), WP_Hook->do_action,
   WP_Hook->apply_filters, oceanwp_page_header_template, get_template_part, locate_template,
   load_template, require(‘/themes/oceanwp/partials/page-header.php’), oceanwp_breadcrumb_trail,
   yoast_breadcrumb, WPSEO_Breadcrumbs::breadcrumb, WPSEO_Breadcrumbs->render, Yoast\\
   WP\\SEO\\Presenters\\Breadcrumbs_Presenter->present, Yoast\\WP\\SEO\\Presenters\\
   Breadcrumbs_Presenter->get, Yoast\\WP\\SEO\\Presentations\\Abstract_Presentation-
   >__get, Yoast\\WP\\SEO\\Presentatio…PHP message: PHP Warning: Attempt to read
   property “published_at” on null in /home/506952.cloudwaysapps.com/khytrmnsvp/
   public_html/wp-content/plugins/wordpress-seo/src/builders/indexable-author-builder.
   php on line 98PHP message: PHP Warning: Attempt to read property “last_modified”
   on null in /home/506952.cloudwaysapps.com/khytrmnsvp/public_html/wp-content/plugins/
   wordpress-seo/src/builders/indexable-author-builder.php on line 99PHP message:
   WordPress database error Table ‘khytrmnsvp.wp_yoast_indexable’ doesn’t exist 
   for query INSERT INTO `wp_yoast_indexable` (`object_type`, `object_id`, `permalink`,`
   title`, `description`, `is_cornerstone`, `is_robots_noindex`, `is_robots_nofollow`,`
   is_robots_noarchive`, `is_robots_noimageindex`, `is_robots_nosnippet`, `is_public`,`
   has_public_posts`, `blog_id`, `open_graph_image`, `open_graph_image_id`, `open_graph_image_source`,`
   open_graph_image_meta`, `twitter_image`, `twitter_image_id`, `twitter_image_source`,`
   object_published_at`, `object_last_modified`, `version`, `permalink_hash`, `created_at`,`
   updated_at`) VALUES (‘user’, ‘1’, ‘[https://bitcoin-casino-no-deposit-bonus.com/author/admin/&#8217](https://bitcoin-casino-no-deposit-bonus.com/author/admin/&#8217);,‘
   Daniel Kay – Founder Bitcoin Casino No Deposit Bonus’, ‘I am the founder of Bitcoin
   Casino No Deposit Bonus and have been studying concurrency technology since 2013.
   I have been traveling South East Asia for the last 6 years and am a huge gaming
   fans that takes part in eSports competitions.’,…PHP message: WordPress database
   error Table ‘khytrmnsvp.wp_yoast_indexable’ doesn’t exist for query INSERT INTO`
   wp_yoast_indexable` (`object_type`, `object_id`, `object_sub_type`, `permalink`,`
   primary_focus_keyword_score`, `readability_score`, `is_cornerstone`, `is_robots_noindex`,`
   is_robots_nofollow`, `is_robots_noimageindex`, `is_robots_noarchive`, `is_robots_nosnippet`,`
   open_graph_image`, `open_graph_image_id`, `open_graph_image_source`, `open_graph_image_meta`,`
   twitter_image`, `twitter_image_id`, `twitter_image_source`, `primary_focus_keyword`,`
   canonical`, `title`, `description`, `breadcrumb_title`, `open_graph_title`, `
   open_graph_description`, `twitter_title`, `twitter_description`, `estimated_reading_time_minutes`,`
   author_id`, `post_parent`, `number_of_pages`, `post_status`, `is_protected`, `
   is_public`, `has_public_posts`, `blog_id`, `schema_page_type`, `schema_article_type`,`
   object_last_modified`, `object_published_at`, `version`, `has_ancestors`, `permalink_hash`,`
   created_at`, `up...PHP message: WordPress database error Table 'khytrmnsvp.wp_yoast_indexable_hierarchy'
   doesn't exist for query SELECT`ancestor_id`FROM`wp_yoast_indexable_hierarchy`
   WHERE`indexable_id`= '0' ORDER BY`depth`DESC made by require('wp-blog-header.
   php'), require_once('wp-includes/template-loader.php'), include('/themes/oceanwp/
   404.php'), get_header, locate_template, load_template, require_once('/themes/
   oceanwp/header.php'), do_action('ocean_page_header'), WP_Hook->do_action, WP_Hook-
   >apply_filters, oceanwp_page_header_template, get_template_part, locate_template,
   load_template, require('/themes/oceanwp/partials/page-header.php'), oceanwp_breadcrumb_trail,
   yoast_breadcrumb, WPSEO_Breadcrumbs::breadcrumb, WPSEO_Breadcrumbs->render, Yoast\\
   WP\\SEO\\Presenters\\Breadcrumbs_Presenter->present, Yoast\\WP\\SEO\\Presenters\\
   Breadcrumbs_Presenter->get, Yoast\\WP\\SEO\\Presentations\\Abstract_Presentation-
   >__get, Yoast\\WP\\SEO\\Presentations\\Indexable_Presentation->generate_breadcrumbs,
   Yoast\\WP\\SEO\\Generators\\Breadcrumb...PHP message: WordPress database error
   Table 'khytrmnsvp.wp_yoast_indexable_hierarchy' doesn't exist for query SELECT`
   ancestor_id`FROM`wp_yoast_indexable_hierarchy`WHERE`indexable_id`= '0' ORDER 
   BY`depth`DESC made by require('wp-blog-header.php'), require_once('wp-includes/
   template-loader.php'), include('/themes/oceanwp/404.php'), get_header, locate_template,
   load_template, require_once('/themes/oceanwp/header.php'), do_action('ocean_page_header'),
   WP_Hook->do_action, WP_Hook->apply_filters, oceanwp_page_header_template, get_template_part,
   locate_template, load_template, require('/themes/oceanwp/partials/page-header.
   php'), oceanwp_breadcrumb_trail, yoast_breadcrumb, WPSEO_Breadcrumbs::breadcrumb,
   WPSEO_Breadcrumbs->render, Yoast\\WP\\SEO\\Presenters\\Breadcrumbs_Presenter-
   >present, Yoast\\WP\\SEO\\Presenters\\Breadcrumbs_Presenter->get, Yoast\\WP\\
   SEO\\Presentations\\Abstract_Presentation->__get, Yoast\\WP\\SEO\\Presentations\\
   Indexable_Presentation->generate_breadcrumbs, Yoast\\WP\\SEO\\Generators\\Breadcrumb...
   PHP message: WordPress database error Table 'khytrmnsvp.wp_yoast_indexable_hierarchy'
   doesn't exist for query DELETE FROM`wp_yoast_indexable_hierarchy`WHERE`indexable_id`
   = '0' made by require('wp-blog-header.php'), require_once('wp-includes/template-
   loader.php'), include('/themes/oceanwp/404.php'), get_header, locate_template,
   load_template, require_once('/themes/oceanwp/header.php'), do_action('ocean_page_header'),
   WP_Hook->do_action, WP_Hook->apply_filters, oceanwp_page_header_template, get_template_part,
   locate_template, load_template, require('/themes/oceanwp/partials/page-header.
   php'), oceanwp_breadcrumb_trail, yoast_breadcrumb, WPSEO_Breadcrumbs::breadcrumb,
   WPSEO_Breadcrumbs->render, Yoast\\WP\\SEO\\Presenters\\Breadcrumbs_Presenter-
   >present, Yoast\\WP\\SEO\\Presenters\\Breadcrumbs_Presenter->get, Yoast\\WP\\
   SEO\\Presentations\\Abstract_Presentation->__get, Yoast\\WP\\SEO\\Presentations\\
   Indexable_Presentation->generate_breadcrumbs, Yoast\\WP\\SEO\\Generators\\Breadcrumbs_Generator-
   >generate, Yoast\\WP\\SEO\\`

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Fellyph Cintra](https://wordpress.org/support/users/fellyph/)
 * (@fellyph)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/delete-amp-problems/#post-15591069)
 * Hi [@bitcoincasino666](https://wordpress.org/support/users/bitcoincasino666/),
 * Thanks for contacting us, you should check what was the previous .htaccess file,
   the errors are triggered by the Yoast plugin, and probably some configuration
   was removed when you changed the .htacess code.
 * I suggest you get in contact with your hosting because we can’t cover changes
   made on the hosting side. But I’m seeing you are using Cloudways, they are pretty
   on solving those issues.
 * If the problem continues I would get in contact with Yoast plugin support.
 *  [Fellyph Cintra](https://wordpress.org/support/users/fellyph/)
 * (@fellyph)
 * [4 years ago](https://wordpress.org/support/topic/delete-amp-problems/#post-15653771)
 * As we didn’t receive a response I’ll mark this as resolved. Feel free to open
   a [new support topic](https://wordpress.org/support/plugin/amp/#new-post) if 
   you require any further assistance.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Delete AMP Problems’ is closed to new replies.

 * ![](https://ps.w.org/amp/assets/icon.svg?rev=2527602)
 * [AMP](https://wordpress.org/plugins/amp/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/amp/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/amp/)
 * [Active Topics](https://wordpress.org/support/plugin/amp/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/amp/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/amp/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Fellyph Cintra](https://wordpress.org/support/users/fellyph/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/delete-amp-problems/#post-15653771)
 * Status: resolved