Support » Installing WordPress » Clear .htaccess and start over?

  • I put my site online a week ago, and .htaccess/SEO and URLs seem to be working fine on this standalone server beside me. But I’ve been looking at the Apache2 logs and it seems that there’s a lot of errors being thrown up by google, msn and yahoo bots (the only 3 I let in through the front end.

    Specifically, there’s a …./2004 and a …. /2005 (both with no further URL qualification) URL being rejected quite a few times. Since I did a lot of test articles before putting up the site, I’m thinking that somehow there’s some extra or bad entries in the .htaccess file. Having 2004 articles is fine, since I copied/created some from my old Mambo) site.

    The permalink structure that I have is: /%year%/%monthnum%/%day%/%postname%/

    Is it possible to clean out the .htaccess file of all existing entries for WP and let it “start over” again rebuilding up the article translation list the next time the articles are requested, without fouling up anything, or is there some other way to do it? TIA.

Viewing 2 replies - 1 through 2 (of 2 total)
  • If you don’t have anything else except for WP entries in your .htaccess file, you can simply make a backup of it (if anything goes wrong)

    Then create a new .htaccess file and chmod it 777 to give it write permission and then goto Options > Permalinks and let WP write the new .htaccess.
    Monitor your logs of a few days to see if anything has changed.

    OK, did that and everything is working fine. For sure I will look at the Apache2 logs tomorrow and see if I’m still getting tons of “file not found “/usr/opt/wordpress/2004” or “2005” errors. Just to be sure I have added one line in the .htaccess to cope with long post titles as per the Codex tip. I don’t think that is it, since they are reasonably short, but it doesn’t cost anything to make sure. Thanks a lot.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Clear .htaccess and start over?’ is closed to new replies.