Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • To the best of my knowledge, there’s not now (or has ever been) a way to regenerate the php files from the database. However, I’m not an expert just yet. ??

    Have you tried simply downloading a copy of WP 2.0 and just re-uploading that copy of index.php?

    Thread Starter brianarn

    (@brianarn)

    I’m just going to put this as a separate reply, because it’s awfully odd.

    So, now I’ve got those pieces in as listed above, and I said it worked. It turns out, it only kind-of works.

    Oddly enough, the browser I use makes a difference.

    Firefox: https://www.randomthink.net/stats/ – I get asked to authenticate, but it winds up redirecting to WP’s 404.
    Firefox: https://randomthink.net/stats/ – I get asked to authenticate, and it works fine.

    IE: https://www.randomthink.net/stats/ – I get asked to authenticate, and it works fine.
    IE: https://randomthink.net/stats/ – I don’t get asked to authenticate, as it seems to use my prior auth, and it works fine.

    So, it’s mostly working. I’m guessing that IE just drops the www somewhere along the way in the basic auth. Very weird.

    It’s an odd fix, and makes no sense that it works for my issue, since my issue was with /awstats and not much else, but hey. Too weird.

    Thread Starter brianarn

    (@brianarn)

    Modifying the php files directly isn’t a solution that I like, at all at all, because you have to repeat it if you ever upgrade. ?? I’d bet there’s a way to add those rules via plugin.

    Or, I tried this and while it oddly fixed my awstats access issue, I still can’t see stats or failed_auth or whatever. Try this out rather than a modded classes.php and let me know how it works for you. Paste the # WP Fix lines above your WordPress lines. WP won’t ever edit those.

    # WP Fix
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_URI} ^/stats/(.*)$ [OR]
    RewriteCond %{REQUEST_URI} ^/failed_auth.html$
    RewriteRule ^.*$ - [L]
    </IfModule>

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php
    </IfModule>

    # END WordPress

    Edit: I said this didn’t fix my stats problem, but now it has. I can see the stuff at /stats/ just fine, and I can also see my /awstats/ stuff just fine too. Awesome!

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