New answers tagged

0

I once had a problem like this. On my site was a malware and it edited a .htaccess file. Check by FTP that your .htaccess file is not changed. If yes, scan your site by any online malware scanner or any security Wordpress plugin.


0

If it is not going to your 404.php , then is it redirecting to index.php. a. If it is redirecting to index.php, can you please update the permalink setting and update the .htaccess file with that. b. If the situation still arises can you please try deactivating the plugins one by one and see if any of the plugin is causing the issue. Most probably point a....


0

Here is what I came up with. Seems to be working. If anyone has suggestions for improvement, I'm all ears: // Redirect links to future posts to Coming Soon page. add_action('wp','redirect_coming_soon_posts', 0); function redirect_coming_soon_posts(){ global $wpdb; if ($wpdb->last_result[0]->post_status == "future" && $wpdb->...


0

In the Wordpress settings, there are 2 locations to enter the WP site's URL. (See screenshot.) These are also stored in the wp_options table of the wordpress database. If they do not match the URL of your new server (in your case, 'localhost'), then you will get an error like this. If you can't access the settings page (because wordpress won't load), then ...


0

Here are the steps I do when I copy a Wordpress site (old/new version, live or local). Download all the wp-content/ directory and replace the files (nothing else) Rename the wp-config-sample.php in wp-config.php and adapt the environments variables to your new environment (database name, database user, database password...) Download the database's content ...


0

Turn off any caching plugins you are using and reload the page after clearing browser cache. Once fixed turn caching plugin back on and you should be fine. This worked for me a while back when i had this issue


0

Instead of playing with .htaccess file I would recommend using WordPress "Redirection" plugin, it allows for redirection and also logs them.



Top 50 recent answers are included