Connect with us

[WordPress] how to Fix 404 Errors for Posts and Pages when moved to Live


[WordPress] how to Fix 404 Errors for Posts and Pages when moved to Live

WordPress create rewrite rules which are responsible for managing permalink (Pretty URLS) in .htaccess file automatically. so when you moved your site from one host to another or moving your WP site from your local server to live server, you might face 404 errors for all inner pages but your home page will works fine. WordPress generates this common 404 Errors for Posts, Pages, Custom Post Types, Custom Post Type Taxonomy.

# Solution 1 #

It’s a problem of redirection code in .htaccess file which manages pretty URLs redirections. All you need to do is visit the Permalinks page and WordPress will rewrite .htaccess for you.

Navigate to: Dashboard > Settings > Permalinks and Click on Save Changes button.

Look at the screenshot for visual appeal.

Now go to front page and navigate to any of your posts or pages. 98% it will works.

# Solution 2 #

If above solution also does not work then try with solution2.

If above solution does not work for you, it might be case that your .htaccess file does not have enough write permission. so WordPress failed to update it. Here is a solutions.

Navigate to your Root Directory of your WordPress Installation in FTP Program and find .htaccess file. Right Click on it, change the permission to 666. Now follow the step above by navigating to Dashboard > Settings > Permalinks and Click on Save Changes button.

Now go to front page and open any of your posts or pages. Will it work ? 99% it will work.

# Solution 3 #

If above solution also does not work for you, try with below solution.
1. Navigate to your theme’s directory in FTP Program.
2. Find the functions.php file.
3. Open the file in HTML Editor (e.g. Dreamweaver)
4. Add below line at the end of file.

READ  Website Monetization and WordPress Plug-ins – All You Need To Know

I hope this 3 solution will fix WordPress 404 Issue. 99.99% either of the one of them solution will works for you. If still you face same issue, there might be a different issue of plugins or other. Contact your Developer or Contact me to have custom solution for it. 🙂

Thank You!

No votes yet.
Please wait...

We are a WordPress plugin developer company that focuses on useful WordPress plugin creation and empowering people to earn passive incomes from their blogs. We build unique and groundbreaking plugins that will revolutionize your blog!

Click to comment

Leave a Reply

Your email address will not be published. Required fields are marked *

More in wordpress

Sign up for our newsletter and get a free affiliate e-book!

About Me:

Szabi Kisded

Hi, my name is Szabi and I'm documenting my journey selling plugins on CodeCanyon. I will show you every step of it: learning to code, plugin ideas, WordPress stuff and more. Read more…

Mega Plugin Bundle:

CodeCanyon Portfolio:

Learn to Code Plugins:

Latest Promotions:

Recommended Theme:

Start Your Own Blog:

Recommended VPN:

Translate Your Blog:

AdSense Alternative:

Best Article Spinner:

Popular Posts:

Latest Posts:

To Top