• I did a search and didn’t find anything on this, but I’ve tested this and it’s repeatable: When I enter the options:permalinks screen, WP overwrites the existing .htaccess file.

    I noticed it because I have redirects in that file that kept breaking – I’d edit the file and the changes would be gone.

    Is there any way to turn this off, or can someone point me to where I should dig in the code? I don’t know much about php, but I’m willing to give it a try…

Viewing 5 replies - 1 through 5 (of 5 total)
  • Where did you put your redirects? In my .htaccess there’s a block starting “#BEGIN WordPress” where the WP rewrite rules are, and the other stuff is unharmed outside of that block… to be exact, they’re before that block.

    Thread Starter swduncan

    (@swduncan)

    I put them after that block. I guess I’ll try putting them before….

    Hmm, it shouldn’t make a difference…

    Have a peek at http://mosquito.wordpress.org and see if a bug like this has been entered.

    Does anyone know what htaccess codes will direct visitors to a list of different names for your blog?

    ie:

    “yoursite.com”
    “yoursite.com/index.php”

    And a related question. I have a second blog that runs on a sub-domain. I have not been able to get it to follow the correct URL format for a sub-domain.

    At present the URL is “firstsite.com/secondsite.com/index.php”

    What should the htaccess be to use the correct format?

    ie “secondsite/firstsite.com/index.php/”

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Bug? WP overwriting .htaccess file…’ is closed to new replies.