[resolved] Cannot get to dashboard after enabling permalinks (3 posts)

  1. Ian McLeish
    Posted 4 years ago #

    Hi all, first post, so go easy on me please!

    I installed a security plugin (BulletProof Security) which required that I enable permalinks on my site- I was just using the defaults.
    Having activated the permalinks, and the plugin all seemed well until later when I tried to login.

    I could get the WordPress login screen at /wp-login.php , and it seemed to take me to my site http://www.mcoptom.ie - the admin bar was visible, but when I clicked on dashboard or any any other links the website name, I got a 404 error. I have a custom 404 page, (using infocus by mysitemyway).

    I got back in by renaming the .htaccess file, and unistalled the plugin, but no change. Having then reset the .htaccess file back to the proper name, I still couldn't get in, until I changed the permalink structure back to default. Then all is well.
    The required code was added to the htaccess file, and it is writeable at 644 permissions. I did also see a link which advised to put the 404 Document Redirect in with the wordpress code at the second line from the top the #Begin WordPress section of the htaccess file. That didn't work for me.
    I have had to leave the permalinks at the default, and it works fine now. If it matters my wp-Admin folder is protected with a passwords file, as recommended, and I note that there is no request to authenticate when trying to get to the dashboard- perhaps it is that file that is not found?

    If anyone could give me a pointer I would be really grateful, I did search about this but couldn't find anything that would work for me.


  2. Ian McLeish
    Posted 4 years ago #

    By the way, 3.3.1 version of WordPress, not multisite.

  3. Ian McLeish
    Posted 4 years ago #

    Resolved- I had to include a line of code in the htaccess in the root folder- had to add the line ErrorDocument 401 default in there.

    The issue was because my wp-admin folder was protected.

    Apparently the rewrite engine for the permalinks was intercepting the 401 authorisation message when trying to access the wp-admin folder, it didn't know what to do with it and therefore a caused a 404 not found error.

    I put this code at the top of the root htaccess folder and all is well. I eventually found the information in the forums- I just didn't know properly what I was looking for!


Topic Closed

This topic has been closed to new replies.

About this Topic