• Resolved cryptosmith

    (@cryptosmith)


    I just upgraded to 2.8.4 using the Auto Upgrade plugin. I also went through and changed my database password for an unrelated reason.

    Now, when I visit the site (smat.us) all I get is “401 Unauthorized” as a title and “Credentials required” as the page body.

    I checked the file permission settings on the server and everything is readable. I went through and changed the DB password again to make sure it matched the contents of the wp-config file. I turned off my plugins. I turned off SSL. It still doesn’t work.

    Something this dramatic must be the fault of something simple, but I haven’t found it yet.

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

    (@cryptosmith)

    Follow up: it only happens on the home page – I can visit other pages, like the “About” page (smat.us/about) – the Unauthorized only pops up on the home page.

    Thread Starter cryptosmith

    (@cryptosmith)

    Other details – I run on a Linux host at GoDaddy, but I do my own upgrades, instead of relying on their application upgrader facility.

    Thread Starter cryptosmith

    (@cryptosmith)

    The problem has taken a new twist. My home page now directs to the login page.

    That change took place after I erased all of my cookies. If I log in and out, things are more-or-less normal.

    As you said ,the index.php file permission has to be 775.Check what your .htaccess file has in it.
    It should look like the following but only really needs the last 7 lines.

    ## DISABLE HOTLINKING
    RewriteEngine on
    # Options +FollowSymlinks
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^https://(www\.)?blogdomainname.com/.*$ [NC]
    RewriteRule \.(gif|jpg|jpeg|png|js|css)$ – [F]

    # Link Cloaker Plugin BEGIN
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule link/([^/]*)/([0-9]+)/([0-9]+)/? https://blogdomain.com/wp-content/plugins/link-cloaking-plugin/wplc_redirector.php?post_id=$2&link_num=$3&cloaked_url=$0 [L]
    RewriteRule link/([^/]+)[/]? https://blogdomain.com/wp-content/plugins/link-cloaking-plugin/wplc_redirector.php?name=$1&cloaked_url=$0 [L]
    </IfModule>
    # Link Cloaker Plugin ENDS
    php_value register_globals 1

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    Also check the permalink for your home page.The ‘permalink migration plug-in might solve your unique problem.

    Thread Starter cryptosmith

    (@cryptosmith)

    Thanks for the suggestions.

    In fact, the problem disappeared when I switched to a more up-to-date WordPress theme. The one I had been using was borderline obsolete when I picked it up.

    Thread Starter cryptosmith

    (@cryptosmith)

    I stand corrected. The problem has resurfaced. At first the site looked fine. Then the site redirected the root URL to the “About” page. Then I logged out and cleared cookies. Now it redirects to login again.

    I looked at the rewrite stuff in .htaccess (last 7 lines). Those lines are correct. I’ll look at permalink migration.

    Curiously, my other web site has not shown any ill effects from the 2.8.4 upgrade.

    Since the symptom has changed, I’ll change to a different title.

    Thread Starter cryptosmith

    (@cryptosmith)

    I’m marking this ‘resolved’ in that the problem has changed to something that doesn’t match the thread’s title.

    The new discussion is under topic 301592.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘401 Unauthorized on the home page’ is closed to new replies.