Support » Fixing WordPress » .htaccess won’t let me access admin section

  • One thing I miss in wordpress is a little log that tells me who was where and when. Textpattern used to have something like that, which I tried to add by installing refer. Unfortunately it didn’t work well. I changed my .htaccess to include (and only include) the following:
    DirectoryIndex index.html index.htm index.php
    AddType application/x-httpd-php .html .htm
    php_value auto_prepend_file /home2/f6948312/public_html/refer/refer.php
    Things work fine this way, but I cannot access my wp-admin/ folder anymore. I keep getting an error saying:
    Warning: Cannot modify header information – headers already sent by (output started at /home2/f6948312/public_html/refer/refer.php:161) in /home2/no_of_account/public_html/wordpress/wp-admin/index.php on line 5
    Anyone know what to do?
    ps: If someone were to add a refer list as a feature to wordpress I’d be even happier 🙂

Viewing 4 replies - 1 through 4 (of 4 total)
  • A pointer for those who don’t want to wait for a WordPress hack specifically for this:
    RE_INVIGORATE // Data Archiving Services
    Sign up for an account, insert a tiny snippet of Javascript into your template, and voila, you get tons of useful stats for your site.
    And it’s open source, so if you don’t want to sign up for anything, you could download the code and run it on your own server.

    I too had a similar problem with wp .72. Only, in my case I was shown no error message. I’d go to the login screen, type my username/ password and click GO, and after a minute of musing, the browser would return me to the login screen. Is this some bug in wordpress? Or is something else the problem?

    I did not use the .htaccess hack. Rather, I added the following at the end of my index.php

    <?php include ("/path/to/your/refer/refer.php"); ?>

    Works just fine for me. 🙂

    Thanks for the info about the PHP snippet, I just thought I could use refer to record all the activities on my site without having to add this PHP include. But then again, it’s better than nothing and I can always delete it if I remember to once I find a .htaccess solution 😉

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘.htaccess won’t let me access admin section’ is closed to new replies.