• Resolved bugle

    (@bugle)


    I have a few blogs with wp installed in the root of the site (Bad idea I know, but they’re already active) so when I set up a nice permalink structure using %posts% it didn’t let me access existing directories, specifically the /stats/ directory dreamhost has reserved for analog stats.

    Now in 1.5 I fixed this by adding archives/%postname% to the permalink structure but after upgrading to 2.1 I’m back to square one.

    Any help is appreciated ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter bugle

    (@bugle)

    So am I getting no replies because this is blindingly obvious to fix or because it’s too difficult? I’ve searched around and the only suggestion I’ve found was to switch off the permalink structure, look at the stats then switch it on again, which is less than ideal.

    Any idea how I can manually edit the .htaccess so it will respect that directory?

    Thread Starter bugle

    (@bugle)

    Tried adding

    RewriteCond%{REQUEST_URI}!^/path/to/excluded/files

    this doesn’t work because the directory is virtual too…

    viper007bond

    (@viper007bond)

    Bad idea I know, but they’re already active

    Why is it a bad idea? It should work just fine. ??

    Examples:
    https://www.viper007bond.com/
    https://www.viper007bond.com/stats/

    Does /stats/ really exist on your server or is it a fake URL? WordPress’ rules say if a requested URL is that of a real directory or that of an existing rewrite rule, then go there, otherwise give the URL to WordPress to handle.

    So, it should work for you, but then again, DreamHost is usually on crack when it comes to their server settings (which is why I’ll never go near them).

    Thread Starter bugle

    (@bugle)

    Heh, well I’m happy with them, so let’s not get into that.

    It’s a fake url, wp 1.5 respected it before (Once I told it to put permalinks in a subdirectory /archives that is) but now it doesn’t.

    Real directories are OK. Hm, I’ll see if I can find a “real url” for the stats script and look at it there

    Incidentally, you want to put your stats in a protected directory, else you’ll give free PR to referrer spammers.

    viper007bond

    (@viper007bond)

    robots.txt ??

    Thread Starter bugle

    (@bugle)

    Ah, right, I guess that will work too.

    Thread Starter bugle

    (@bugle)

    Okay, I fixed it. Since WP 1.5 had the desired behaviour, I took the .htaccess from the 1.5 backup dreamhost makes automatically and replaced wp 2.0’s htaccess with the older version, and I now have access to the stats folder.

    I dunno if this will break other things, but it looks like so far it hasn’t.

    Yay for me!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘permalinks overwrites existing directory in 2.1’ is closed to new replies.