WordPress Redirect Visitor On 404 Error

WordPress

WordPress shows a 404 page when visitor navigate to a non existent page. To redirect visitor to a specific page, say home page when visiting non existent page, edit functions.php file in your themes folder, then add following code to it. function redirect_404_to_page() { if( is_404() ) { header( “Location: https://your-domain.tld/page/” , true, 404); exit; … Read more

How to Upgrade PHP on Bitnami WordPress in AWS Lightsail

I have an old Bitnami WordPress server on the Amazon Lightsail server. Bitnami does not support upgrading the PHP version. The recommended solution is to create a new bitnami WordPress instance and migrate the website to the new lightsail instance. Since this server had many websites configured, I do not want to migrate the websites … Read more

How to Speed Up Your WordPress Site

WordPress

Getting your site to load faster is very important. Bounce rate (visitors leaving your website) on your website increases as load time increases. Many WordPress themes, and plugins add extra javascript/css resources to your page, so each page has to load these resources, making the site slow. It is better to use minimum plugins required. … Read more

Find WordPress Version from command line

WordPress

To find the version of WordPress, you can check the file wp-includes/version.php Inside the file look for variable $wp_version You can do this with the grep command grep wp_version wp-includes/version.php Using WP CLI You can use WordPress CLI to find the version of WordPress with the command wp core version Back to WordPress

How to fix WordPress 404 Error htaccess

WordPress

If your WordPress sites shows 404 page when accessing URLs, this is because .htaccess file is missing. WordPress uses .htaccess file to generate SEO-friendly URLs when using Apache or LiteSpeed webserver. To fix the 404 error on WordPress, create a file with the name .htaccess and copy the following content. If WordPress is installed on … Read more

CURL ERROR 7 could not establish a secure connection to WordPress.org

WordPress

On a WordPress website hosted on a CentOS server, I got the following error on the header of the website. Warning: An unexpected error occurred. Something may be wrong with WordPress.org or this server’s configuration. If you continue to have problems, please try the support forums. (WordPress could not establish a secure connection to WordPress.org. … Read more

Bitnami WordPress Failed to update Plugin

wordpress

On a Bitnami WordPress server, plugin installation/upgrade failed with permission error. The error is because the web server in bitmai servers runs as user daemon. When you upload a file as user bitnami, you need to make sure you set file permission properly so anyone in the group can write. To fix the error, run … Read more

WordPress HyperDB

wordpress

HyperDB is a WordPress plugin that allows you to use multiple MySQL database servers with large MySQL installations. It is used to WordPress.com to distribute MySQL server load amount multiple MYSQL database servers hosted in different data centers. HyperDB supports Read and write servers (replication) Configurable priority for reading and writing Local and remote datacenters … Read more