Black Friday Black FridayUp to 85% off all WP Ghost plans.48 months from $49, or pay once for lifetime. SHOP NOW

Why Do I Get a 404 Error on My Custom Admin URL?

Moved

This tutorial has moved to the new WP Ghost Knowledge Base where each feature is presented in detail.

View on new site

This is expected. With Hide the New Admin Path on, your custom admin URL opens only for logged-in users, and visitors who aren’t logged in get a 404 so bots can’t find it. Open your custom login URL first, log in, and the admin URL works.

Why the 404 happens

WP Ghost hides the admin area from anyone who isn’t logged in. Hide “wp-admin” in WP Ghost > Change Paths > Admin Security hides the default /wp-admin, and Hide the New Admin Path hides your custom admin path from visitors. A bot that scans for the custom path gets a 404, so it can’t tell the path exists.

How to access your admin dashboard

Instead of going directly to the admin URL, follow this process. Navigate to your custom login path first (the URL you set in WP Ghost > Change Paths > Login Security). Log in with your credentials. After successful authentication, WordPress automatically redirects you to the admin dashboard at the custom admin URL. From that point on, the custom admin path works normally for the rest of your session because you have a valid authentication cookie.

If you have bookmarked your custom admin URL, update the bookmark to point to your custom login URL instead. The login page is your entry point. The admin URL is accessible only after authentication.

Alternative: Allow admin path without login first

If you prefer the custom admin URL to send logged-out visitors to the login page instead of a 404, go to WP Ghost > Change Paths > Admin Security and switch off Hide the New Admin Path. It’s more convenient, but the redirect tells a scanner that the path exists, so keep the option on and use the login URL for the safer setup.

If you are locked out entirely

If you can’t remember your custom login path or can’t reach the dashboard, open your Safe URL to bypass the path changes for one request, use the Pause for 5 minutes link on the Plugins page if you can reach it, or disable WP Ghost over FTP by renaming the plugin folder or adding define('HMWP_DISABLE', true); to wp-config.php. The full steps are in the Emergency Disable tutorial.

Frequently asked questions

Is the 404 on the admin path a bug?

No. It’s what Hide the New Admin Path is for: visitors who aren’t logged in can’t find your admin URL. Log in through your custom login path first and the admin URL works.

Will this affect other logged-in users like editors or authors?

Any logged-in user with dashboard access can open the admin URL after logging in. If you also switch on Hide “wp-admin” From Non-Admin Users, logged-in customers, subscribers and other users who aren’t administrators get a 404 when they type the default /wp-admin, so they can’t open the dashboard that way. See the Change wp-admin Path tutorial for the role settings.

I get a 404 even after logging in. What should I do?

Log out and log back in so WP Ghost creates a fresh session for the custom admin path. Clear your browser cache and cookies. If the issue persists, try a different browser or incognito window. If none of these work, the server may not be processing WP Ghost’s rewrite rules correctly. Check the Admin Path Redirected to Front Page troubleshooting guide. On WP Ghost Premium 9.0.13 or later, press Start Diagnosis in Ghost Doctor on the Level of Security page. It finds which path your server stopped serving and repairs it.

Does WP Ghost modify WordPress core files?

No. The admin path is hidden through server rewrite rules and session detection. No files or directories are renamed. Deactivating WP Ghost restores normal access to /wp-admin instantly.