$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>404 error - HTAccess stops me from accessing WordPress Dashboard links|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

404 error - HTAccess stops me from accessing WordPress Dashboard links

matteradmin10PV0评论

I have a WP site which I have not looked at for a while. I have just logged in to update aspects of it, including WP itself, now on 5.0.2.

Now if I click on any of the Dashboard links - Posts, Appearance etc - I get Page Not Found. If I delete the HTAccess then it works again ... until WP reinstates it. There is nothing special about the site.

The HTAccess is the standard WP one:

# 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>

# END WordPress

How can I track down what is going wrong?

I have a WP site which I have not looked at for a while. I have just logged in to update aspects of it, including WP itself, now on 5.0.2.

Now if I click on any of the Dashboard links - Posts, Appearance etc - I get Page Not Found. If I delete the HTAccess then it works again ... until WP reinstates it. There is nothing special about the site.

The HTAccess is the standard WP one:

# 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>

# END WordPress

How can I track down what is going wrong?

Share Improve this question edited Jan 8, 2019 at 23:27 Highly Irregular 2234 silver badges10 bronze badges asked Jan 8, 2019 at 1:58 RGriffithsRGriffiths 1191 silver badge8 bronze badges
Add a comment  | 

2 Answers 2

Reset to default 1

I've had this issue on a small number of sites (out of around 60 that I help manage), and I'm wondering if the issue is caused by caching (by a plugin or theme).

If you have a caching plugin, or a theme that does caching, there should be a tool in the Dashboard for emptying/clearing/deleting the cache. Click this, and see if it fixes the issue. I've only tried this once, but it did work.

I believe it is generally recommended to clear the cache whenever a software update is installed (plugin, theme, or WordPress), so that might be something you could try to add to your process in future to prevent the issue.

Try to change the theme first by activating default theme e.g. Twenty Nineteen and check your back-end to make sure that the issue is not your theme. If that did not work, do a plugin audit by de-activating all and re-activating them one by one.

Alternatively, you can go to settings > Permalinks and re-flush by just clicking the Save button (without any changes in the settings).

However, I suspect that it is a theme issue as you said, you have not checked your website for a while and the theme might not be already not compatible with latest WordPress version.

Hope that helps!

Post a comment

comment list (0)

  1. No comments so far