How to change the WordPress default media folder

By default, your WordPress upload folder is located at wp-content/uploads. Every time, you upload an image, your image will be uploaded to wp-content/uploads. You can change this default location by modifying your wp-config.php file:


require_once(ABSPATH . 'wp-settings.php');

Add the following code before the above line:

define('UPLOADS', 'yourNewImagesPath');

Now, every time you upload an image within your WordPress admin dashboard, your image will be saved at your new location.

How to add free SSL certificate from Let’s Encrypt to WordPress on AWS

Adding SSL certificates to your website is now important. This will enable your visitors to communicate with your website securely. Since Google now consider SSL as one of its ranking factors, this implementation will help improve your SEO ranking.

The following instruction is for WordPress site on AWS that was deployed using Bitnami stack.

Step 1: Login to your AWS server using a SSH client

Step 2: Install Git

sudo apt-get install git
[Continue Reading…]

How to Re-direct http to https

After you installed an SSL certificate for your domain, you may want to re-direct your visitors from http:// to https://. This will help your webpage load securely. Now, google search ranking also supports https://, this will also help your SEO.

You can modify your .htaccess file and add the following code to the beginning of your .htaccess file:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Your .htaccess file needs to be in the root folder of your website to make it works.

How to Install Apache 2.4.37 + PHP 7.3 + MYSQL 8.0.13 on Windows

If you are a PHP/MySQL developer, it is very important to be able to work on your application locally in your own environment, since you can make changes and update to your application quickly and effectively. The instruction below will help you to setup your environment with the latest version of Apache, PHP, and MySQL. For any reasons, you are still using the older versions, you can follow the old setup of Apache, PHP, and MySQL here.

Since I put together that instruction 4 years ago, it no longer works with the newer version of PHP 7.3 and MySQL 8.0.13. So here is the updated instruction:

[Continue Reading…]

WordPress SEO permalink structure

For SEO purposes, the best permalink structure is the one that is simple and clean. For WordPress, either one of the following is best:




Here at, we use the first one because each post may have multiple categories.

Page 4 of 7 1 2 3 4 5 6 7