• Resolved timaurus

    (@timaurus)


    Hi,
    Recently I noticed I cannot access posts that are password protected.
    After entering the password, the site redirects to a 401 error page.

    I’m not sure what the issue is, it worked before.
    I did recently install a TLS and changed the urls from http to https, but I’m not sure how relevant that is.
    You can view an example here:
    (the password is: hearty}

    https://pixelwizard.com.au/work/prostate-cancer-app/

    I had a look at the .htaccess file, this is what is in the file:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{SERVER_PORT} 80
    RewriteRule ^(.*)$ https://www.pixelwizard.com.au/$1 [R,L]
    </IfModule>

    # END WordPress

    Any help would be greatly appreciated

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hey @timaurus

    Interesting enough, I opened your link, entered the password, and it took me directly to that post page. Everything seemed to work perfectly ??

    Are you running into this issue while being logged in as admin in WordPress? Can you try logging out?

    From my understanding…”A 401 Unauthorized error means the page you were trying to see needs valid user ID and password before you can view it.”
    Any chance you were entering the password wrong?

    • This reply was modified 7 years, 5 months ago by jordanwpcom.
    Moderator t-p

    (@t-p)

    That page opens fine for me too ??

    It’s possible you are experiencing cache issue.

    Try flushing any caching plugins you might be running, as well as server and/or browser caches. Not just your browser, but any op cache or content network cache as well such as Cloudflare. If your host provider has a “Purge Varnish” option or if you can ask your provider to flush memcache on your server. If you are using SiteLock, manage your caching there.

    Thread Starter timaurus

    (@timaurus)

    Hi, thanks everyone. There was a broken URL causing a few issues. I got the host to purge the varnish and everything works fine now. Thanks again for your swift responses!

    Moderator t-p

    (@t-p)

    glad to know it ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘401 error on posts that are visibility: password protected’ is closed to new replies.