Support Forumhelp htaccess kept writing new code (122 pages) – Support Forum https://support.ishyoboy.com/forums/topic/help-htaccess-kept-writing-new-code-122-pages/feed Mon, 30 Dec 2024 19:03:46 +0200 http://bbpress.org/?v=2.5.12-6148 en-US https://support.ishyoboy.com/forums/topic/help-htaccess-kept-writing-new-code-122-pages/#post-1674 <![CDATA[help htaccess kept writing new code (122 pages)]]> https://support.ishyoboy.com/forums/topic/help-htaccess-kept-writing-new-code-122-pages/#post-1674 Sat, 15 Feb 2014 16:49:10 +0000 dantan1 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?

]]>
https://support.ishyoboy.com/forums/topic/help-htaccess-kept-writing-new-code-122-pages/#post-1675 <![CDATA[Reply To: help htaccess kept writing new code (122 pages)]]> https://support.ishyoboy.com/forums/topic/help-htaccess-kept-writing-new-code-122-pages/#post-1675 Sat, 15 Feb 2014 16:49:42 +0000 dantan1 Another note. Yesterday was the first time I opened htaccess. I didn’t touch it before that.

]]>
https://support.ishyoboy.com/forums/topic/help-htaccess-kept-writing-new-code-122-pages/#post-1682 <![CDATA[Reply To: help htaccess kept writing new code (122 pages)]]> https://support.ishyoboy.com/forums/topic/help-htaccess-kept-writing-new-code-122-pages/#post-1682 Mon, 17 Feb 2014 08:10:33 +0000 IshYoBoy Hey,

seems like some rewriting rules problem caused by incorrect markup maybe? Maybe some plugin is messing it up. Minicorp is no making any modifications to the .htaccess file itself so this should be related to the WordPress or how some Plugin is entering the data into the “.htaccess”.

Unfortunately you’ll have to play around with it, change the settings, re-save permalinks and inspect how it changes the “.htaccess” file so you could identify what the cause is.

Cheers

A 5 star rating is always a great motivation for us if you are happy with our theme or support!
Themeforest | MojoMarketplace | Creative Market

]]>
https://support.ishyoboy.com/forums/topic/help-htaccess-kept-writing-new-code-122-pages/#post-1694 <![CDATA[Reply To: help htaccess kept writing new code (122 pages)]]> https://support.ishyoboy.com/forums/topic/help-htaccess-kept-writing-new-code-122-pages/#post-1694 Mon, 17 Feb 2014 19:36:50 +0000 dantan1 Hi,

Thanks for clarification the theme does not rewrite htaccess and for the tips outside of your theme!

I found the solution. I just put a line space between
RewriteRule ^index\.php$ – [L]

RewriteCond %{REQUEST_FILENAME} !-f

also disabled WordPress SEO (Yoast) to auto take away stop words. Now I optimize permalinks manually. Now seems server has no more error. Not sure which solved it but good for now. Back to focus on writing great content!

cheers

]]>
https://support.ishyoboy.com/forums/topic/help-htaccess-kept-writing-new-code-122-pages/#post-1695 <![CDATA[Reply To: help htaccess kept writing new code (122 pages)]]> https://support.ishyoboy.com/forums/topic/help-htaccess-kept-writing-new-code-122-pages/#post-1695 Mon, 17 Feb 2014 19:37:41 +0000 dantan1 btw, I love your theme and your support! Keep up the good work!

]]>
https://support.ishyoboy.com/forums/topic/help-htaccess-kept-writing-new-code-122-pages/#post-1699 <![CDATA[Reply To: help htaccess kept writing new code (122 pages)]]> https://support.ishyoboy.com/forums/topic/help-htaccess-kept-writing-new-code-122-pages/#post-1699 Mon, 17 Feb 2014 21:46:25 +0000 IshYoBoy Great that things work now and thank you very much! We try to do our best. Have fun using the theme.

Cheers

A 5 star rating is always a great motivation for us if you are happy with our theme or support!
Themeforest | MojoMarketplace | Creative Market

]]>