Resolution: WordPress Saving Redirects Home Page or 404

WordPress Resolutions

Possible Symptoms

  • Saving a post redirects to home page
  • Saving a post redirects to 404 page
  • Saving permalinks redirects to home page
  • Cannot remove featured image
  • Saving anything in wp-admin area redirects to home page, redirects to 404 page or is spinning forever
  • Slow saving for anything

Possible Resolutions

  1. Disable ModSecurity
  2. Disable your firewalls
  3. Reinstall WordPress
  4. Update all Plugins and Themes
  5. Repair your databases
  6. Check your htaccess and index files
  7. Update the PHP version
  8. Increase the PHP limits
  9. Re-save the Permalinks

1. Disable ModSecurity

  1. Login to your hosting panel (ex: http://mydomain.com/cpanel)
  2. Click on ModSecurity
  3. If you see this message:
    ModSecurity is disabled for all of your domains. You can Disable ModSecurity for your domains.
    click on Disable
What is ModSecurity? It is an Apache module, for more infos, click here: cPanel ModSecurity Documentation 

2. Disable your firewalls

  1. Disable your firewalls and if it solves the issue check if there is some rules that would interfere with wordpress ajax or options. Also check for local .htaccess files

3. Reinstall WordPress

  1. Login in your WordPress Admin area (http://mydomain.com/wp-admin/)
  2. In the left Menu, hover on Dashboard and click on Updates.
  3. If you see this message:
    You have the latest version of WordPress
    Click on Reinstall Now
  4. If you see this message:
    An updated version of WordPress is available
    Click on Update Now

4. Update all Plugins and Themes

  1. Login in your WordPress Admin area (ex: http://mydomain.com/wp-admin/)
  2. In the left Menu, hover on Dashboard and click on Updates.
  3. If you see this message:
    The following plugins have new versions available
    Check the box Select All and Click on Update Plugins
  4. If you see this message:
    The following themes have new versions available
    Check the box Select All and Click on Update Themes

5. Repair your databases

  1. Login to your hosting panel (ex: http://mydomain.com/cpanel)
  2. Click on phpMyAdmin
  3. Click on Databases
  4. Click on the database that belongs to your site (if you are not sure which one it is, look in your wp-config.php file for DB_NAME. You could also do the procedure on all databases, it doesn’t hurt). You are now in Structure
  5. Scroll-down to the bottom
    1. Click in Check All
    2. In the drop-down menu With Selected select Repair table

6. Check your htaccess and index files

  1. Review all your .htaccess and index.php files for inserted code and restore them if there is

7. Update the PHP version

  1. Login to your hosting panel (ex: http://mydomain.com/cpanel)
  2. Click on Select PHP Version
  3. On the top-left, in the PHP Version drop-down menu, select the most current one or the one just before (now 5.6 is the most updated compatible version, 7.0 is not compatible yet with every script and plugins)
  4. Click Save

8. Increase the PHP limits

  1. Login to your hosting panel (ex: http://mydomain.com/cpanel)
  2. Click on Select PHP Version
  3. On the top-right, click on Switch To PHP Options
  4. Increase the values for memory_limitmax_execution_time, max_input_time (you can leave it to -1), post_max_size and upload_max_filesize
  5. Click Save
  1. Login in your WordPress Admin area (ex: http://mydomain.com/wp-admin/)
  2. In the left Menu, hover on Settings and click on Permalinks.
  3. In Common Settings, click in the Pain radio button
  4. Click Save changes
  5. In Common Settings, click in the permalink structure it was before (ex: post name or enter a custom value)
  6. Click Save changes

Don’t forget to clear the cache of your site (not only your browser) after you have done those steps to reflect the new state of your WordPress installation.

Do you like it?

Last Update: July 14, 2016  

July 14, 2016   262    CPanel Hosting, Hosting, Website    
Total 0 Votes:
0

Tell us how can we improve this post?

+ = Verify Human or Spambot ?

728x90-_0005_3-free-goods

Launch Websites with Pre-build codes from 2$

Build WordPress Websites with Drag & Drop Themes and Plugins

Reply