• Resolved flykmco

    (@flykmco)


    Yoast Version 9.5
    Using PHP 7.3 on Apache server

    When attempting to retrieve/test sitemap at this URL
    https://alphafl.com/sitemap_index.xml
    Sitemap URL returns:

    This page isn’t working alphafl.com is currently unable to handle this request.
    HTTP ERROR 500

    What I have tried:
    1. Disabled WP Fastcache plugin
    2. Went through Yoast setup again (“No Problems”) shows up.
    3. Noticed there was no Yoast information in HTACCESS file. Found an older thread suggesting to add the following but it did not fix the error:
    # Start Yoast SEO – Sitemap Fix for Normal WordPress Install
    RewriteEngine On
    RewriteBase /
    RewriteRule ^sitemap_index.xml$ /index.php?sitemap=1 [L]
    RewriteRule ^locations.kml$ /index.php?sitemap=wpseo_local_kml [L]
    RewriteRule ^geo_sitemap.xml$ /index.php?sitemap=geo [L]
    RewriteRule ^([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 [L]
    RewriteRule ^([a-z]+)?-?sitemap.xsl$ /index.php?xsl=$1 [L]
    # END Yoast SEO – Sitemap Fix for Normal WordPress Install

    CURRENT HTTACCESS FILE:

    # Start Yoast SEO – Sitemap Fix for Normal WordPress Install
    RewriteEngine On
    RewriteBase /
    RewriteRule ^sitemap_index.xml$ /index.php?sitemap=1 [L]
    RewriteRule ^locations.kml$ /index.php?sitemap=wpseo_local_kml [L]
    RewriteRule ^geo_sitemap.xml$ /index.php?sitemap=geo [L]
    RewriteRule ^([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 [L]
    RewriteRule ^([a-z]+)?-?sitemap.xsl$ /index.php?xsl=$1 [L]
    # END Yoast SEO – Sitemap Fix for Normal WordPress Install

    # BEGIN rlrssslReallySimpleSSL rsssl_version[3.1.3]
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTPS} !=on [NC]
    RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
    </IfModule>
    # END rlrssslReallySimpleSSL

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    PHP 7.3 Settings

    allow_url_fopen On
    display_errors Off
    error_reporting E_ALL
    file_uploads On
    include_path .:/opt/alt/php73/usr/share/pear
    log_errors On
    mail.force_extra_parameters no value
    max_execution_time 300
    max_input_time -1
    memory_limit 128M
    open_basedir no value
    post_max_size 64M
    session.save_path /opt/alt/php73/var/lib/php/session
    short_open_tag On
    upload_max_filesize 128M

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    We can see your sitemaps are appearing here at the non-pretty permalink: https://alphafl.com/?sitemap=1.

    We also see the style sheet is working here: https://alphafl.com/wp-content/plugins/wordpress-seo/css/main-sitemap.xsl.

    We are not sure if the issue is with the stylesheet not being applied correctly and/or the pretty permalink of sitemap_index.xml failing to generate.

    We suggest the following actions:

    1. Does clearing your caching from your theme, plugin, server, CDN like CloudFlare or browser resolve the issue? If you are not sure how to clear caching from theme/plugin please speak to those authors. If you want to clear cache from the server, please speak to your host provider. To clear the cache from a browser use this guide: https://kb.yoast.com/kb/how-to-clear-my-browsers-cache/.

    2. Confirm you entered the rules correctly as described here (you may need to delete them, clear the cache, and re-add them): https://kb.yoast.com/kb/xml-sitemaps-apache/. Note, that if your WordPress is in a subfolder you may need to make changes.

    3. If the pretty permalink still fails to appear, please contact your host provider and confirm your server is correctly set-up.

    Plugin Support amboutwe

    (@amboutwe)

    This thread has been marked as resolved due to lack of activity.

    You’re always welcome to re-open this topic. Please read this post before opening a new request.

    Thanks for understanding!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Sitemap Not Generating – Error 500’ is closed to new replies.