Developer Forums

What is domain name?

Domain name also called an Internet address or name, a domain is the location of a website. For example, the domain name is “google.com” points to the IP address “172.217.166.206” (this is ip address not fixed, this is changeable). Generally, it’s easier to remember a name rather than a long IP address. A domain name […]

What is domain name? Read More »

How to use PHP htaccess file

Just create a file with .htaccess file in your website folder. For Redirect website http://example.com to http://www.example.com RewriteEngine OnRewriteCond %{HTTP_HOST} !^www. [NC]RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L] For Redirect website http://example.com to https://www.example.com RewriteEngine OnRewriteCond %{HTTP_HOST} !^www.RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L] When you have to redirect the website non HTTP to HTTPS protocol after installing an SSL certificate

How to use PHP htaccess file Read More »