How to setup redirects for domain.com to www.domain.com and vice versa ?
Create a .htaccess file under the root directory and add the code below
Redirect www.domain.com to domain.com
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.domain\.com$ [NC]
RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L]
Redirect domain.com to www.domain.com
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain\.com$ [NC]
RewriteRule ^(.*)$ http://domain.com/$1 [R=301,L]
Save the file and exit and give it a try once
Filed under:
Linux techies
How to upgrade mysql on cPanel servers ?
Login to WHM with root user and access the option Server Configuration >> Tweak Settings. Look for MySQL and check the radio button for 5.0 from 4.1 OR login to the server via SSH and open the file /var/cpanel/cpanel.config and find for mysql-version. Change it to 5.0 from 4.1. Save the file and exit. Now execute the commands on the server to upgrade the mysql version.
/scripts/upcp –force
/scripts/mysqlup –force
Wait for mysql to upgrade. Once the process is completed, check the mysql version.

Filed under:
Linux techies