Support » Plugins » WordPress SEO by Yoast – .htaccess Rules are Disappearing

  • When I installed this plugin I noticed that any of the rules I set up between the following 2 lines disappeared:

    RewriteBase /
    RewriteRule ^index\.php$ - [L]

    This is usually where I place my redirects and url rewrites, but after I installed the plugin all of the rules I set up between those 2 lines of code were just gone. I just thought that it had something to do with the installation of the plugin but a few days later I noticed that those rules are missing again. I am unsure what the trigger is. Has anyone else ran into this problem before?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Just found Yoast’s post looking for certain information:

    WordPress version: 3.3.2
    WordPress SEO version:

    I did this: Installed the plugin and a chunk of my .htaccess file went missing

    I expected the plugin to do this: Not change my .htaccess file unless I changed it.

    Instead it did this: It removed a large section from my .htaccess file.

    I did a little more digging and confirmed that activating the plugin triggers this. I even installed a new installation of WordPress, version 3.4.2 and installed only WordPress SEO by Yoast, getting the same result. I also tried the development version, getting the same result.

    I cannot figure out if there are any other triggers. This has happened twice to my live version, the first time being when the plugin was activated and the second with some unknown trigger. Since there are multiple contributors, authors and admins on my site, there is no way of telling who triggered it or how they triggered it.

    Any help on this would be much appreciated. Thank you.

    I had the same problem and somehow it seems only Yoast’s SEO module is doing this. My way of solving it is to set the permissions on .htaccess to 444, eg read-only. So far this seems to do the trick.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WordPress SEO by Yoast – .htaccess Rules are Disappearing’ is closed to new replies.