-
- Error type:
- WP internal error
- error name: invalid
- fixed link English name:
- error description:
- 404 Page Not Found
- due to Apache or Nginx configuration problems, the WordPress fixed link can not be opened properly. Note: there is no 404 error in this 404 error non-page.
- restores backups or migrates WordPress. You recently restored a backup or switched your site to a new domain or server.
- updates. Incompatibility issues that occur after updating plug-ins, themes, or WordPress cores. Changes in the
- .htaccess file. Update or change your .htaccess file incorrectly. How does
- fix invalid fixed links in WordPress?
- resets the persistent link structure– configure your built-in permalink settings on the WordPress dashboard. Disable plug-ins for
- -deactivate installed plug-ins with a few clicks.
- replaces .htaccess files or Nginx configuration files-from file management or using FTP clients to replace .htaccess files.
encountered a “404 Page Not Found” error when visiting your website? You may encounter problems with invalid fixed links.
in this article, we will help you find the culprit behind this error and provide you with comprehensive guidance on how to fix it.
directory
may trigger invalid fixed links on your site for a variety of reasons. Installation of new plug-ins for
. The new plug-in you install may interfere with your .htaccess file.
here are several ways to fix invalid fixed links in WordPress.
1. Reset the fixed link structure the easiest way for
to deal with this problem is to reset the permanent link structure:
1. Navigate to your WordPress background. Go to Settings & gt; permalink.
2. Choose another fixed link structure-& gt; Save Changes. For example, if you are currently using date and name settings. Change it to something else, such as Post name.
3. When you are finished, change it back to your standard structure and click Save changes again.
if you still receive a “404 Page Not Found” error, let’s try some other remaining methods. The purpose of
‘s above approach is to trigger the rewrite rule generation of WordPress.
2. Disable plug-in
to deactivate a recently installed or updated plug-in that may trigger an error. Otherwise, you can completely remove all installed plug-ins:
1. 0. Go to the plug-ins menu in the WordPress dashboard & gt; installed plug-ins.
2. Click the deactivate button next to the plug-in name.
3. When you are finished, reset the fixed link structure using the previous method.
3. Replace the .htaccess file
if none of these options resolve your permalink corruption problem, the problem may be related to the configuration of your .htaccess file. Therefore, you should replace the current .htaccess file with the default file.
1. Navigate to the
pagoda panelPagoda; file.2. Select the domain name of the website you want to manage, and then go to the WordPress installation directory.
3. Locate the .htaccess file in the root folder.
4. Right-click and select rename. Then, change the file name (for example, .htaccess-error).
5. Next, click the new file icon at the top of the page. Don’t forget to name it .htaccess.
6. Paste the following code into the new .htaccess file.
^ index\ .php $- [L]
or, you can use the
FTP clientto run this process.if the problem is not resolved, try to remember what action you took before the error occurred. If it occurs after a specific update, restoring a backup may be a reliable option for your site to get up and running.
if your Web server uses Nginx, you can log in to your pagoda facade, click the “site” menu to enter the list of sites, select the site you want to configure, click “Settings”, find the pseudo-static option in the pop-up window, then select the website program as “WordPress”, and finally save it.
Pagoda Control Panel-static setting
if you are using a LNMP environment, in general, when you configure host, if you have chosen WordPress as the website program, in theory lnmp has already configured the pseudo-static site for you.
but if you are unable to access the link when using
or/%post_id%.html
format as a fixed link, you can try to configure Nginx or Apache manually. The configuration reference is as follows: the general directory of/%post_id%
is
.
, find the conf of the website or the conf of the rewrite rule, and add the following code line:
summary
there are many reasons why you encounter fixed link damage in WordPress. The bad news is that your website will be inaccessible and will display a “404 Page Not Found” error. Fortunately for
, you can easily deal with this problem in three simple ways:
We hope that this step-by-step tutorial will help you fix broken fixed links on WordPress sites.