help htaccess kept writing new code (122 pages)

  • Resolved
    Posted in: Minicorp WP  

  • Member
    dantan1
    February 15, 2014 at 6:49 pm #1674

    Hi Ishyoboy,

    I had an internal server error 500 yesterday and the godaddy web support troubleshoot and renamed the htaccess file. After WP wrote a new file the website was ok again but I just wanted to know what was the cause so I don’t do it in future. He said it could be a permalink conflict problem. My WP set to permalink post name, and the Yoast seo was set to remove stop words. The code in htaccess had 122 pages of code (I started the website about 2-3 weeks).

    This is the code
    # 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
    # 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

    The code in bold will just repeat itself for 121 pages and finally the server probably came out error 500. Any idea how this might happen?

    Sorry, this forum is for verified users only. Please Login / Register to continue
    or get 6 months support forum access to all forum topics for a reduced price.

Comments are closed.