A 404 on Appearance > Themes almost always means WordPress cannot route the admin request to the right file. The usual causes are a broken rewrite rule, a plugin or theme conflict, damaged core files or a server rule that blocks the path. Work through the checks below in order, starting with the two-minute fixes, and you will find the cause without rebuilding the site.
What the 404 on the Appearance menu actually means
The Themes screen lives at /wp-admin/themes.php. When you click Appearance, your browser asks the server for that file. A 404 means the server, or WordPress itself, answered “nothing here”. That narrows the problem to a short list: the file is missing, a rewrite rule sends the request somewhere else, or something in front of WordPress is rejecting the URL.
Before you change anything, notice where the error appears. The answers point at different causes.
- Only Appearance 404s, the rest of wp-admin works. Look at plugin conflicts, a damaged
themes.phpfile and security rules that name that path. - Every wp-admin page 404s. Look at permalinks,
.htaccess, server rewrite rules and a wrong site URL. - The front end 404s as well. This is almost always rewrite rules, and the permalink reset in step 2 usually fixes it.
- The error page is not the WordPress theme 404 but a plain server page. The server never handed the request to WordPress. Check the web server configuration and any firewall.
Take a full backup first. If you do not have a routine yet, see our guide to free WordPress backup plugins. Every step below is reversible, but a backup costs nothing and covers the cases where it is not.
Step 1: Clear the browser cache and try another browser
A cached redirect or a stale admin page can keep showing a 404 after the cause is gone. Open the URL in a private window, or in a different browser, and log in again. If it works there, clear the cache and cookies for the site and move on. This takes a minute and rules out the least interesting cause.
If you use a caching plugin or a CDN, purge it too. Admin pages should not be cached, but a misconfigured rule can cache one. Our overview of WordPress cache plugins covers how to exclude wp-admin paths.
Step 2: Reset permalinks
This is the most common fix and the safest. WordPress rebuilds its rewrite rules whenever you save the permalink settings.
- Open Settings > Permalinks. If you cannot reach the Appearance screen, you can usually still reach this one.
- Do not change anything. Click Save Changes.
- Reload Appearance > Themes.
Saving flushes the rewrite rules and, on servers that run Apache and allow it, rewrites the WordPress block of the .htaccess file. If WordPress cannot write the file, it shows a notice at the top of the permalinks screen with the rules to paste in by hand. That leads to step 3.
If you have command line access, WP-CLI does the same job:
# Example command. Run from the WordPress root folder.
wp rewrite flush --hard
Step 3: Check and replace the .htaccess file
On Apache and LiteSpeed hosting, WordPress relies on an .htaccess file in the site root. A missing or damaged file is a classic cause of 404 errors on pages that do exist. Connect with FTP, SFTP or your host file manager, and turn on the option to show hidden files, because the file name starts with a dot.
- Download the current
.htaccessas a backup. - Replace its WordPress block with the default rules below. Keep any lines your host or another plugin added outside the block.
- Save, then reload the Themes screen.
Example code for a standard single-site install:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Two things to know. First, if your site is in a subfolder, RewriteBase and the last rule need that folder in the path. Second, the file above is for single sites. Multisite networks use a different block, covered in step 9.
On Nginx there is no .htaccess. The equivalent lives in the server block, and the key line is the fallback that passes unknown paths to WordPress. Example code:
location / {
try_files $uri $uri/ /index.php?$args;
}
If you are on managed hosting, you cannot edit that file yourself. Ask the host to confirm the WordPress rewrite rules are active.
Step 4: Deactivate all plugins
A plugin that edits the admin menu, redirects admin URLs or hides wp-admin can produce a 404 on exactly one screen. The test is simple: turn them all off and see whether the error stays.
- If you can reach Plugins, select all and choose Deactivate.
- If you cannot reach wp-admin, rename the
wp-content/pluginsfolder toplugins-offover FTP. WordPress then treats every plugin as inactive. - Load Appearance > Themes. If it opens, a plugin is the cause.
- Rename the folder back, then activate plugins one at a time, reloading the Themes screen after each, until the 404 returns.
The WP-CLI version is one line:
# Example command. Note which plugins were active first.
wp plugin list --status=active
wp plugin deactivate --all
Plugins that most often cause this are the ones that change the login or admin URL, security and firewall plugins, white-label plugins that rename or remove menu items, and role editors that strip capabilities. A role editor is worth checking even if the 404 looks like a routing problem: a user without the capability to switch themes does not always see a clean permission message.
Step 5: Switch to a default theme
If plugins are cleared and the error remains, test the theme. Your active theme can add its own admin pages and, rarely, interfere with the Themes screen. Switch to a default WordPress theme such as the latest Twenty Twenty-series theme.
- If you can reach Appearance, activate the default theme there.
- If you cannot, rename your active theme folder inside
wp-content/themes. WordPress falls back to a default theme when the active one is missing, provided a default theme is installed. - Check whether the Themes screen loads.
If it does, the problem is in your theme. Update it, reinstall a fresh copy from the vendor, or contact the theme author with the exact steps that trigger the 404. Do not delete a theme that holds your only copy of custom changes. Copy the folder first, and keep customisations in a child theme so a reinstall cannot wipe them.
Step 6: Check file permissions and ownership
WordPress documentation recommends 755 for directories and 644 for files, with wp-config.php kept stricter. Permissions that are too tight stop the web server from reading a file, and the result can look like a missing page. Ownership matters too: files owned by the wrong system user cause read and write failures that no permission number fixes.
- Check
wp-admin,wp-includesandwp-contentin your FTP client or file manager. - Reset directories to 755 and files to 644 if they differ. Avoid 777, which is a security risk.
- If you are not sure which user should own the files, your host can tell you in one message.
With shell access, the usual pair of commands is below. Run them from the site root and only if you understand what they touch.
# Example commands. Back up first.
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
Step 7: Re-upload the core admin files
If the file the server is looking for is missing or damaged, you will get a 404 or a blank page that no setting can fix. This happens after a failed update, an interrupted upload, a bad migration or a malware cleanup that deleted files.
Check first. WP-CLI can compare your core files with the official checksums:
# Example command. Reports modified or missing core files.
wp core verify-checksums
To repair, download a fresh copy of the same WordPress version from wordpress.org, unzip it and upload the wp-admin and wp-includes folders, overwriting the old ones. Do not upload or overwrite wp-content or wp-config.php, because that is where your themes, plugins, media and settings live. With WP-CLI, one command does the safe version:
# Example command. Replaces core files and leaves wp-content alone.
wp core download --force --skip-content
Pay attention to files that verification flags that you do not recognise. Extra PHP files in core folders can be a sign of a compromised site. If you suspect that, treat it as a security incident and clean the site before you continue.
Step 8: Check security plugins, firewalls and server rules
Web application firewalls, host-level security rules and security plugins can block requests that look suspicious. Some sites also block theme and plugin file editing on purpose, which is fine, but it should not produce a 404 on the Themes screen.
- Security plugin. Open its firewall or blocklist log and look for a blocked request to
themes.phpfrom your own IP address. Add your IP to the allow list or turn off the rule that matched. - Hosting firewall or CDN. Check the firewall events for your site. A rule that fires on a specific admin path can be turned off for your IP.
- Custom admin URL. If you changed the login or admin address with a plugin, requests to the default
wp-adminpath may deliberately return a 404. Use the custom address, or disable the plugin using step 4. - Server rules. Look for
DenyorRedirectlines in.htaccess, and for location blocks in the Nginx configuration that mentionwp-admin.
The honest summary is that the host can see the real log. If your plan includes support, ask them to check the error log at the time of your request and send you the line.
Step 9: Multisite networks and wrong site URLs
On a Multisite network, themes are managed in two places. Network admins install and network-enable themes from the Network Admin dashboard, and individual site admins activate an enabled theme on their own site. A site admin who opens Appearance > Themes only sees themes the network has enabled, so an empty list is expected and not an error. A genuine 404 on a network usually has one of these causes:
- The
.htaccessrules do not match the network type. Subdomain and subdirectory networks need different blocks, and WordPress shows the correct one in the Network Setup screen. - The
wp-config.phpconstants for the network are missing or wrong, for example the domain or path settings. - A domain-mapped site has a mismatch between the address in the browser and the site URL stored in the database.
The last cause also affects single sites. If you moved a site or changed domains, check that the WordPress Address and Site Address under Settings > General match the address you are using. A mismatch can send admin requests to a URL that does not exist. If you cannot reach Settings, you can set WP_HOME and WP_SITEURL in wp-config.php as a temporary override.
Step 10: Turn on debugging and read the log
If nothing above explains it, stop guessing and read the error. Turn on logging in wp-config.php, reproduce the 404 and open the log file.
// Example code. Add above the line that says to stop editing.
define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );
WordPress then writes errors to wp-content/debug.log. Look for fatal errors, missing files and permission failures at the moment you loaded the Themes screen. Turn debugging off again when you are done, and delete the log, because it can contain paths and other details you do not want public.
Common causes at a glance
| Symptom | Most likely cause | First fix |
|---|---|---|
| Front end and admin both 404 | Rewrite rules or .htaccess | Save Permalinks, then replace .htaccess |
| Only Appearance 404s | Plugin conflict or security rule | Deactivate all plugins |
| Blank page or plain server 404 | Missing core file | Verify checksums and re-upload core |
| Started after a theme switch | Theme conflict | Activate a default theme |
| Started after a migration | Wrong site URL or server rules | Check Site Address and host config |
| Network site only | Multisite rules or constants | Compare with the Network Setup block |
How to prevent it next time
- Back up before updates. A restore point turns a bad update into a five-minute job.
- Update on a staging copy for big changes. Test plugin and theme updates there first.
- Change one thing at a time. When you know what changed last, you know where to look.
- Keep customisations in a child theme or a small plugin. Then a theme reinstall is harmless.
- Write down any custom admin URL or firewall rule. Future you will forget it.
- Keep the server logs reachable. Know where your host puts the error log before you need it.
If you are also tuning the rest of the site, our guide to backup plugins and the overview of page builders cover the other two things that most often break after a theme change.
Frequently asked questions
Why does Appearance > Themes show a 404 error?
The server could not find or route the request for themes.php. The cause is usually a rewrite rule problem, a plugin conflict, missing core files or a firewall rule. Resetting permalinks and deactivating plugins fix most cases.
Will resetting permalinks delete my content?
No. Saving the permalink settings only rebuilds the rewrite rules. Your posts, pages, media and settings are untouched, and if you do not change the structure your URLs stay the same.
Can I fix it without wp-admin access?
Yes. Use FTP, SFTP or WP-CLI to rename the plugins folder, replace .htaccess, rename the theme folder or re-upload core files. Every step in this guide has a file-level or command-line route.
Is a plugin conflict or a theme conflict more likely?
A plugin conflict is more likely, because plugins hook into the admin menu and requests far more often than themes do. Test plugins first, then the theme.
Could this be a hacked site?
It can be, but it is not the usual cause. Treat it as a possibility if verification reports unknown files in the core folders, if admin users you did not create appear or if the problem came back after you fixed it. In that case, clean the site before making other changes.
Why does the error only affect one user or one browser?
That points at cache, cookies, a role or capability difference or an IP-based firewall rule. Try a private window, then check the user role, then check the firewall logs for that person’s address.
What should I send my host if nothing works?
Send the exact URL, the time you loaded it, what you already tried and any line from the error log. A specific request gets a specific answer, and the host can see server rules that you cannot.