How to redirect www URLs to non-www

You can redirect http://www.yourdomain.com to http://yourdomain.com by setting below code into .htaccess file. RewriteEngine On RewriteCond %{HTTP_HOST} ^www.yourdomain.com [NC] RewriteRule ^(.*)$ http://yourdomain.com/$1 [L,R=301] // Replace yourdomain.com with your actual domain/website name. Please do contact us at esupport@L3webhosting.com if you require any further assistance.

How to redirect non-www URLs to www

You can redirect http://yourdomain.com to http://www.yourdomain.com by setting below code into .htaccess file. RewriteEngine On RewriteCond %{HTTP_HOST} ^yourdomain.com [NC] RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [L,R=301] // Replace yourdomain.com with your actual domain/website name. Please do contact us at esupport@L3webhosting.com if you require any further assistance.

How to reset SSH port from WHM

There is an Auto fixer script available to reset the SSH port through WHM. # Log into WHM control panel with root user. # Access the following URL to reset SSH configuration settings to default: http://ServerIPAddress:2086/scripts2/doautofixer?autofix=safesshrestart // Replace “ServerIPAddress” with your server IP address or hostname. After executing this script, SSH Port of your server…

Install ImageMagick PHP extension on cPanel server with EasyApache 4

# To install imagemagick on cPanel server you need to enter below commands on shell yum -y install ImageMagick-devel ImageMagick-c++-devel ImageMagick-perl # Now we need to install imagemagick PHP extensions for PHP versions 5.4, 5.5, 5.6, 7.0 and 7.1 for phpver in $(ls -1 /opt/cpanel/ |grep ea-php | sed ‘s/ea-php//g’) ; do printf “\autodetect” |…

Redirect website from http to https using .htaccess

First you need to install a valid SSL certificate for your website and ensure it is working with https:// You have to locate the¬†.htaccess¬†file for your website you want to apply the redirect to. ¬† For primary website, it will be located in the¬†public_html¬†folder. Open .htaccess file using any editor and at the top of…

Redirect website from https to http using .htaccess

You have to locate the¬†.htaccess¬†file for your website you want to apply the redirect to. ¬† For primary website, it will be located in the¬†public_html¬†folder. Open .htaccess file using any editor and at the top of the file, copy and paste the following code: RewriteEngine On RewriteCond %{HTTPS} on RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] # Save…

Error: (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80

Cause : Another process already uses 80 port and Apache cannot bind to it. Resolution : Evaluate which process(es) may be using port 80 with the following commands: fuser -n tcp 80 ps aux | grep PID // PID equal to the ports listed with the fuser command. OR ss -plnt sport eq :80 Then,…