Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix site stopped working after editing code

Discussion in 'Misc WordPress Requests' started by tanishqroy123, Apr 5, 2018.

  1. tanishqroy123

    Guest

    site stopped working after editing code, by tanishqroy123

    i needed to upload an xml sitempap to my google webmaster console, but it kept giving an error 404- cant open…so i read through some sites online, and they asked me to add the following lines of code to my yoast seo plugin –

    # WordPress SEO – XML Sitemap Rewrite Fix
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^sitemap_index.xml$ /index.php?sitemap=1 [L]
    RewriteRule ^([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 [L]
    </IfModule>
    # END WordPress SEO – XML Sitemap Rewrite Fix

    the moment i added this code, and saved changes, my site stopped working, and now i cant even access the admin page..
    it says- this page isnt working
    currently unable to handle this request

    this is urgent,as i need to showcase my site to a company on saturday.
    please help!

    site stopped working after editing code
     
    #1

Share This Page

Monarch Social Sharing Plugin