Posts

Showing posts with the label WordPress

[How to] Redirect URL in WordPress

Image
In this tutorial, I will walk you through redirecting a URL in WordPress without using any plugins. You can open a Terminal or Command Prompt window and do the following: $cd to /var/www/html $ls -loa $sudo nano .htaccess Append to the end of file “Redirect 301 old-URL new-URL” Save the file and exit $sudo service apache2 restart This tutorial redirects a URL in WordPress without a plugin by adding a Redirect 301 rule to the site's .htaccess file on an Apache server. A 301 tells browsers and search engines that the move is permanent. Editing .htaccess directly is lightweight and avoids extra plugins, but keep a backup, since a syntax mistake there can take the site down until it is corrected.

[How To] Install Free SSL Certificate for WordPress

Image
In this tutorial, I have installed a free SSL certificate from Let's Encrypt using the Certbot tool on Google Cloud Platform VM running Debian OS that hosts a WordPress site using Apache server. You can follow similar steps for other Cloud providers / OS distributions / CMS vendors / Web servers . Part-1: Configure Virtual Host for your domain on Apache cd /var/www/html wp option update home 'https://example.com' wp option update siteurl 'https://example.com' sudo nano /etc/apache2/sites-available/example.com.conf sudo apache2ctl configtest sudo a2ensite example.com sudo systemctl reload apache2