3 Ways to Fix WordPress that Always Redirects to Homepage

Have you ever visited a WordPress post page but was redirected to the homepage?

If you’re using a plugin that manages URL structure, there’s a pretty good chance you’ll run into such a problem.

The main reason is that WordPress doesn’t read the permalink structure well, or something goes wrong behind the scenes on your site. You won’t know this until you get a problem notification in Search Console or check it yourself.

So, is this a serious problem?

Luckily not.

The solution is very easy and fast. No need to contact the technician team or the hosting. You can fix everything yourself with the following tutorial.

#1 Solved the problem of redirecting to homepage with Save Permalink

If you still have access to the dashboard page (wp-admin), this method can be done.

1. Log in to the dashboard WordPress you.

2. Click Settings (Settings) then select Permalinks (Permalinks).

3. Without making any changes, click Save Changes (Save Changes).

WordPress Post Redirect Homepage

4. Retry your site to see if the problem still occurs.

#2 Try setting the .htaccess file to default

The .htaccess file is a special configuration used by the server. Therefore, the accessibility of your site is very dependent on this file. If you can’t get into the WordPress dashboard, this method can be an alternative.

See also  How to Open Reddit on Chrome PC Without VPN

1. Go to the cPanel hosting page, usually accessible by addresswebsite.com/cpanel then login.

WordPress Post Redirect Homepage

2. Click menu File Manager.

WordPress Post Redirect Homepage

3. Go to your website directory (if only one site is installed, it’s in the public_html folder). Search files .htaccessright click and select Edit.

WordPress Post Redirect Homepage

4. Click Edit.

WordPress Post Redirect Homepage

5. Replace the contents of the .htaccess file with the following code then Save Changes.

# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index/php [L]

#END WordPress
WordPress Post Redirect Homepage

6. Double check your WordPress site to see if the issue is resolved.

#3 Deactivate all plugins to find out which plugin is the problem

If the two solutions above do not solve the problem, the last resort is to turn off all the plugins and then activate them one by one while checking the WordPress page.

This method is a bit labor-intensive but that’s the procedure.

  1. Go to page Plugins → Installed Plugins
  2. Check all plugins
  3. Under Bulk Actions, select Deactivate then Select
  4. Activate one plugin then check your WordPress site again
  5. Repeat step number 4 until you find the plugin that is the source of the cause

TIPS: You don’t have to deactivate all plugins if you think some are important. Just turn off the plugins related to the permalink and website URL structure.

By following the above method, the homepage redirect or 404 Error problem can be resolved in no time and requires no web server expertise.

Also make sure this problem is not caused by a plugin. You can use options plugin rollback if there is an update that feels like making your site crash. I hope this helps!

See also  How to Exclude Pages in WordPress Search Results