First step, if you do not already have a .htaccess file created in the root directory of the affected domain name document. To do this, refer to the following: How to create .htaccess file? If the file already exists, you can edit it as described below: Creating and editing a file via FTP Creating and editing a file via SSH What is the http header? […]
By default your website can be accessed with both www.example.com and example.com. Since Google penalizes this due to duplicated content reasons, you should restrict the access to either www.example.com or example.com. Some links may be outside of your website scope and/or the search engines may have already indexed your website under both addresses. Using the Redirect tool in the cPanel Redirecting to or from WWW […]
Htaccess files are hidden plain text files that are on the server to help control how your visitors interact with your website. The htaccess file is also used to block specific traffic from being able to view your website. If you look for your .htaccess file you’ll see that there’s no filename. The extension is .htaccess which tells the server what type of file it […]
The server looks for specifically named files as the first page of your website, also known as the index page. The default order of index file names our particular servers look through is index.php, index.htm, index.html, and finally default.htm. You can change the name of the index file your account looks for by altering the .htaccess file. Perhaps you want to have a specific custom […]
By default your website is loaded from the public_html folder of your account. The public_html directory is also called web root folder or document root folder. If you’ve created a test website under a sub-folder and you want it to be displayed when you type your domain name, add the following lines to the .htaccess file in the public_html folder: RewriteEngine on RewriteCond %{HTTP_HOST} ^domain-name.com$ […]