redirect www to non www url htaccess

How to redirect www to non-www URL using htaccess

To redirect all www traffic to non-www URL – you need to add the following lines in .htaccess file: RewriteEngine On RewriteCond ...
    ovh cloud raid configuration

    How to create Raid1 mirroring with 3rd & 4th Drives in OVH servers

    OVH panel offers easy Raid configuration for the partitions in up to 2 drives. Recently I was working on a server that has 2 SSDs and 2 ...

      How to clean /tmp directory automatically in Linux/cPanel using tmpwatch

      The “tmpwatch ” command in linux is to removes files which haven’t been accessed for a period of time. The tmpwatch recursively ...
        directory 755 file 644 permission

        How to recursively change Directory & File permission to 755 & 644 respectively

        To change all the directories to 755 (drwxr-xr-x): find /directory_location -type d -exec chmod 755 {} \; To change all the files to ...

          Whitelist IP or IP range in/out using iptables

          #Flush existing rules iptables -F # Set up default DROP rule for eth0 (Assuming eth0 is the Ethernet Port) iptables -P INPUT DROP # ...
            change default ssh port 22 to something else

            How to change default SSH port 22 to something else

            Internet connected Linux servers are always vulnerable to exploitation by the hackers/intruders. One of their common attack is through ...
              All Linux command ssh terminal

              How to Clear bash / SSH / Terminal command history in Linux

              You might need to wipe off the command history that you’ve executed in your linux system for various reason. Normally when logged ...

                How to find the IP addresses of a Linux system

                The following command in a linux based system will show all the IPs assigned to that system: # ip addr show Or alternatively, if ...
                  determine whether your storage is SSD or HDD using linux command

                  Determine if the storage is SSD or HDD – using linux command

                  You’ve purchased a Cloud server or a Virtual server. The server provider says it comes with an SSD (Solid State Drive). Now you ...
                    Ghost Vulnerability - serious security hole

                    GHOST vulnerability in Linux distributions and its Solution

                    A GNU C Library (glibc) vulnerability – termed as “GHOST Vulnerability” was announced to general public on 27  ...
                      Load More