• amca01

    (@amca01)


    Hello,

    Some time ago my wordpress account was hacked, so I sprang into action, and following advice gleaned from different websites, started hardening my site. Then I had to leave it for other matters.

    Back to it today, and I’ve discovered that although I can access and read posts (as a visitor), I can’t edit anything; I get the famous 404 error:

    The requested URL /wp-admin/ was not found on this server.
    Apache/2.4.7 (Ubuntu) Server at ***.***.***.*** Port 443

    As you see, I’m running apache 2.4.7 on Ubuntu Server 14.04, port 443 (aiming to use https instead of plain old http). I can’t find anything useful in the apache error log, so I don’t know whether this is a permission problem, a wordpress problem, or an apache problem.

    I have my wordpress in its own directory /var/www/html/wordpress. I have also set up an apache configuration blog.conf, using port 80 and the DocumentRoot /var/www/html/wordpress. So my posts can at least be delivered to the outside world.

    So given this, I’m not sure why apache is giving me a 404 error message from port 443. Maybe the default-ssl.conf sets the DocumentRoot to be 443. Could I simply change the wordpress port (in my blog.conf) to 443?

    Any advice would be welcome. I have a backlog of blog posts I’d like to put up!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter amca01

    (@amca01)

    Oops – fixed! I simply changed

    define('FORCE_SSL_ADMIN', true);

    to

    define('FORCE_SSL_ADMIN', false);

    in my wp-confg.php, and we’re away! I don’t know, though, if this compromises my security. Anyway, at least it works now.

    mdshak

    (@mdshak)

    Hi,
    Brilliant! I am glad that you managed to resolve the issue.
    Thanks
    Mohammad

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘After securing site, now can’t access wp-admin’ is closed to new replies.