Overview

After a WordPress website is migrated to Conetix from your old provider or developer, you may notice that some or all of the links on the website produce a 404 error. This is usually because the .htaccess has not copied across.

WordPress uses a standard .htaccess file that plugins modify so you can simply create a new .htaccess with this article.

Information

Our example covers a basic WordPress install, if you have a multi-site or advanced configuration please see the official WordPress documentation for more information: https://wordpress.org/support/article/htaccess/

Instructions

  1. Login to Plesk
  2. Click File Manager
    wordpress shows 404 errors after migration
  3. Create a new file:
    wordpress shows 404 errors after migration
  4. Name the file .htaccess and click OK:
    wordpress shows 404 errors after migration
  5. Once created, open the .htaccess file:
    wordpress shows 404 errors after migration
  6. In the blank file, copy & paste the below code:
# BEGIN WordPress
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]
# END WordPress
  1. Your file will now resemble the below:
    wordpress shows 404 errors after migration
  2. Click OK to save the .htaccess file.
    wordpress shows 404 errors after migration
  3. Test your pages to see if they still show a 404 error.

Advice

If you have any caching plugins, you should disable and re-enable these plugins so they populate .htaccess with any required rules.

If you’re unsure on any of the above please contact our friendly support team!

Was this article helpful?

Related Articles