500 Internal Server Error
-
Hi there,
So real nightmare here.
I was having trouble with Google Webmaster detecting a 404 error from my sitemaps.Apparently it was some sort of issue with my .htaccess file through my Yoast WordPress SEO plugin. This it what he suggested:
https://kb.yoast.com/article/77-my-sitemap-index-is-giving-a-404-error-what-should-i-do
“You should go to your .htaccess file (WordPress SEO plugin > Edit Files) and add the following code before the main WordPress rewrite rules:”
So I added the following code (as per the link above).
# WordPress SEO – XML Sitemap Rewrite Fix
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 WordPress SEO – XML Sitemap Rewrite Fix…But when I went to save the change I got a 500 internal server error and the whole site is down. Can’t even access my admin page. Disaster
This was the original code before I added the fix.
# 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>If anyone can explain what’s going on here or how to fix I would be eternally grateful.
This what I see when I go to admin page.
https://magicfromthemachine.com/wp-login.php?loggedout=true
Thanks so much.
Nick
- The topic ‘500 Internal Server Error’ is closed to new replies.