Sitemap Not Generating – Error 500
-
Yoast Version 9.5
Using PHP 7.3 on Apache serverWhen 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 500What 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 InstallCURRENT 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 128MThe page I need help with: [log in to see the link]
- The topic ‘Sitemap Not Generating – Error 500’ is closed to new replies.