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…
Bad idea I know, but they’re already active
Why is it a bad idea? It should work just fine. 😉
Examples:
http://www.viper007bond.com/
http://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.
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!