• peekaa

    (@peekaa)


    I made some change to original htacess: add this line: php_value max_input_vars 10000 (yes, its on windows server, xamp, and I had an issue with menu limit). After week or two, dont know exactly, this line has gone and there was the original one again (and menu limit worked again ?? ) .

    Could WP itself regenerate under some circumstances original file htacess? Dont like to be in the same situation after week again…

    Original htacess:

    # 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

Viewing 3 replies - 1 through 3 (of 3 total)
  • catacaustic

    (@catacaustic)

    Yes, WordPress can, and does, regenerate the .htaccess file. it normally happens when you change your permalink structure, but some plugins and themes can force the regeneration when they are activated in order to set up their own re-write rules internally. This really only happens when updates or changes are made to the site, so it shouldn’t be “every week’ unless you are making big changes all the time.

    Thread Starter peekaa

    (@peekaa)

    Should not WordPress keep the changes in htacess, especialy when it is outside #BEGIN – # END section? How to make otherwise my changes to htacess permanent even when changing permalink structure or plugin upgrade or wp upgrade?

    catacaustic

    (@catacaustic)

    It should, but I haven’t looked into the way that it re-writes quite os much yet. The source code is always there to tell you exactly what it does when it generaetes the file.

    Another option for what you want to do is change the setting in the php.ini file for your system. That way there’s no chance that it will ever get over-written, and you know that it’s done in the right place. personally I prefer setting PHP configuratoin values in a php.ini file. Just remember that you have a good chance of running into issues when you take the site to it’s final live server if your hosting company doesn’t allow changes like this. A lot block .htaccess files and site-only php.ini fils from changing the standard configuration.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘htacess changes gone’ is closed to new replies.