Domains – ChemiCloud Knowledge Base & Self-Support Center https://chemicloud.com/kb Mon, 28 Apr 2025 10:30:14 +0000 en-US hourly 1 https://wordpress.org/?v=6.7.2 https://chemicloud.com/kb/wp-content/uploads/2019/06/favicon_rk1_icon.ico Domains – ChemiCloud Knowledge Base & Self-Support Center https://chemicloud.com/kb 32 32 How to Download your Website RAW Access Logs in cPanel https://chemicloud.com/kb/article/raw-access-logs-in-cpanel/ https://chemicloud.com/kb/article/raw-access-logs-in-cpanel/#respond Sat, 06 Mar 2021 21:51:05 +0000 https://chemicloud.com/kb/?post_type=ht_kb&p=4922 Sometimes the AWStats aren’t enough and you need to download your Website Access Logs for a deeper examination. Not to worry, cPanel makes this really easy!

Step 1: Log in to your cPanel. There’s a lot of ways to do this, but the sure-fire easiest way is to log in to your Client Area, then open your cPanel.

Step 2: Look for the Metrics section (6th from the top of cPanel) and click Raw Access.

Step 3: When the Raw Access panel has opened, click the domain for which you want to download raw access logs.

Pro Tip:

If you use a SSL Certificate on your website, be sure to download the SSL version of your logs. 

After clicking the domain link, your access logs will be downloaded in a tar.gz format.

You can use a program like 7Zip or a command-line utility to unpackage these files and import them into the application of your choice for further examination.

]]>
https://chemicloud.com/kb/article/raw-access-logs-in-cpanel/feed/ 0
.htaccess 101 – RegEx Characters https://chemicloud.com/kb/article/htaccess-regex-characters/ https://chemicloud.com/kb/article/htaccess-regex-characters/#respond Thu, 14 Jan 2021 21:59:43 +0000 https://chemicloud.com/kb/?post_type=ht_kb&p=4358 This tutorial will teach you how to use specific RegEx characters specific to .htaccess files.

What is Regex?

Before going further, RegEx is short for a regular expression – it is defined as a specific string of text used to describe a search pattern. It helps to match, locate, and manage text.

.htaccess RegEx Characters Explained

The following table showcases different regex characters that are specific to .htaccess files.

CharacterWhat does it do?
#Forces the server to ignore the text following the # on the same line. Typically used for comments
[F]Indicates Forbidden, with this the server should return a 403 forbidden error to the client
[L]The Last rule forces the server to stop processing rules in the .htaccess file
[N]Indicates Next and forces Apache to redo the rewrite process, except using the currently rewritten URL instead of the initial URL
[G]Gone tells the server to deliever the gone status message, which is used to mark pages that no longer exist on the site.
[R]This forces Apache to initialize a redirect, this can be a permanent redirect (page has moved, 301), or a temporary redirect (302).
[P]Indicates Proxy which tells the server to use mod_proxy to handle requests
[C]Tells the server to chain a rule with the next rule. If the rule matches for example, then the chained rules will run as well, if not, then they will not run.
[QSA]Tells the server to use the query string at the end of an expression
[NC]No Case instructs the server to treat any argument as case insensitive
[NS]The No Subrequest forces the server to skip if it is an internal sub request
[PT]Pass Through has mod_rewrite send a formatted URL back to Apache
[NE]No Escape forces the server to parse through all output ignoring escaping characters, meaning spaces in the URL will not be replaced with %20 for example
[OR]Specifies a logical ‘OR‘ statement that evaluates two expressions
[S=x]Forces the server to skip “x” number of rules based on if a match is found, not the same as the Chain flag [C]
[a-z]Denotes a range of characters between the two characters separated by a dash
[^]Defines not within a character class, or the Start of a string of characters
[]+Defines that any combination characters defined within the brackets is a match there can be multiple matches
[]Defines that any characters defined within the brackets is a match
[T=MIME-type]Defines the mime type, forces the target file to be that mime type
[E=variableName:newValue]Forces the server to set the environmental variable “variableName” to the value “newValue”
a{n}Defines the specific number of the preceding character to be matched
?Defines the preceding character as being optional
$Signals the end of a regular expression
()Can be used to group characters together
^Signals the beginning of a regular expression
.Specifies a single arbitrary character
Signals not to perform an action
!Defines negation
+Will match at least one preceding character
|Logical ‘OR‘ operator
*Wildcard that will match any occurrence of the preceding character
.Signals an escaped literal period
-dAnalyzes if a string exists within a directory
-fDetermines if a string is a preexisting file
-sTests for a non zero value

Tired of experiencing issues with your site? Get the best and fastest hosting support with ChemiCloud! 🤓 Check out our web hosting plans!

]]>
https://chemicloud.com/kb/article/htaccess-regex-characters/feed/ 0
Difference Between Primary, Addon, Parked and Subdomains https://chemicloud.com/kb/article/difference-primary-addon-parked-and-subdomains/ https://chemicloud.com/kb/article/difference-primary-addon-parked-and-subdomains/#respond Fri, 01 May 2020 07:50:31 +0000 https://chemicloud.com/kb/?post_type=ht_kb&p=3080 In this article, we will cover each type of domain that can be added to cPanel and we’ll explain the difference between a primary, addon, parked (alias), and subdomains.

What is a Primary Domain?

Your primary domain is the main domain name on the cPanel account. It’s the domain you use when you first order your hosting service. The document root for your primary domain; it’s always the public_html folder.

What is an Addon Domain?

An Addon domain is an additional domain that will display a completely different website and not the same site as in the primary domain.

Let’s suppose you MyDogSite.com, but you also want to launch a new site called MyRabbitSite.com. You would do this using an addon domain. Before adding an addon domain in cPanel, make sure that your domain name is registered.

Tutorial: How to Create an Addon Domain in cPanel

What is a Parked Domain or Alias?

A Parked Domain or Alias Domain is a domain name that leads to the same site as another domain name. The domain is, in essence, parked on top of the primary domain name.

For example, suppose we have a domain name my-site.com. If we park my-site.net on top of the .com domain, a visitor to our site will be able to access the site from either the .com or the .org address. The visitor won’t notice any difference in the website at all no matter which one she chooses.

Tutorial: How to Create a Parked Domain (Alias) in cPanel

What is a subdomain?

Subdomains, though, will work off of your existing domain names. They can be used for the same purposes as regular domain names; they just have an extra part in front.

Another example could be if you created two subdomains dogs and rabbits on mypestore.com.

You’d visit those subdomains in your browser using http://dogs.mypetstore.com/and http://rabbits.mypetstore.com/, respectively.

You could set each subdomain to go to its own website or to go to a section of the main mypetstore.com site.

Tutorial: How to create a Subdomain in cPanel

That’s it! Now you know the difference between a Primary, Addon, Parked and Subdomain!

]]>
https://chemicloud.com/kb/article/difference-primary-addon-parked-and-subdomains/feed/ 0
How to Find the Document Root of Your Website in cPanel https://chemicloud.com/kb/article/document-root-cpanel/ https://chemicloud.com/kb/article/document-root-cpanel/#comments Tue, 03 Mar 2020 14:26:47 +0000 https://chemicloud.com/kb/?post_type=ht_kb&p=2857 What is the Document Root Folder?

The document root is where the website files for a domain name are stored. As you can host multiple domain names in cPanel (addon domains and subdomains), you need to have an individual folder for each domain.

After you create an addon domain or subdomain, you can find the document root inside cPanel by clicking on the Addon Domains or Subdomains icon.

First, we’ll demonstrate how to find the document root for your primary domain. And then, we’ll demonstrate how to find the document root for your addon domains and subdomains.

This tutorial assumes that you’re using the Jupiter theme for your cPanel account.

How to find your primary domain’s document root in cPanel

1) To begin, go ahead and log into your cPanel.

2) Okay, once you’ve logged into cPanel. Go to the File Manager.

cPanel > Files > File Manager

You’ll see the contents of that folder show up on the right side of the screen. This is the document root for your primary domain; it’s always the public_html folder.

Struggling with subpar support with no answers? ChemiCloud is the hosting solution designed to save you time! 🤓 Check out our web hosting plans!

How to find the document root for your addon domains in cPanel

1) To begin, go ahead and log into your cPanel.

2) After logging in, go to the Domains.

cPanel > Domains
cPanel > Domains

3) Next, you will find a list with all your hosted Domains, and listed beside is the Document Root path for each domain.

In the following example, the document root folder for the “mynewdomain.com” addon is in the account’s home directory under the “mynewdomain.com” folder.

How to find the document root for your addon domains in cPanel

1) To begin, go ahead and log into your cPanel.

2) After logging in, go to the Domains.

"cPanel

3) Next, you will find a list with all your hosted Domains, and listed beside is the Document Root path for each domain.

In the following example, the document root folder for the “blesta.cchostingdemos.com” addon is in the account’s home directory under the “blesta.cchostingdemos.com” folder.

That’s it! Now you know how to find the document root for your primary domain, addon domains, and subdomains.

]]>
https://chemicloud.com/kb/article/document-root-cpanel/feed/ 1
How to Use the Force HTTPS Redirect in cPanel https://chemicloud.com/kb/article/force-https-redirect-in-cpanel/ https://chemicloud.com/kb/article/force-https-redirect-in-cpanel/#comments Thu, 27 Feb 2020 15:17:17 +0000 https://chemicloud.com/kb/?post_type=ht_kb&p=2829 What is HTTPS, and why should you use it?

HTTPS, displayed as a padlock icon in the web browser bar, indicates the SSL protocol is being used to send data between a web server and a website. Any website, especially those that require login credentials, and sensitive data, should use HTTPS.

How does HTTPS redirection work?

Let’s say you’ve just installed an SSL on your website, whether through our one-click Let’s Encrypt installer or one purchased through your Client Area.

The force HTTPS redirect feature in cPanel allows you to redirect visitors to the secure version of your website automatically.

How to force HTTP to HTTPS redirect in cPanel?

1. Go ahead and log in to cPanel.

2. Once in the cPanel dashboard, scroll down to the “Domain” section and click on the Domains icon.

cPanel > Domains
cPanel > Domains

Then the domains interface will appear, where you will see a list of all the domains on your cPanel account. You’ll see the “Force HTTPS Redirect” column.

3. Let’s locate the domain that you wish to redirect to HTTPS and set the appropriate force HTTPS redirect toggled to on, as in our example:

Force HTTPS Redirect > Toggle On
Force HTTPS Redirect > Toggle On

A success message will appear.

You can toggle several domains to enable or disable forced HTTPS redirects with the option at the top of the table. Please select the checkbox for each domain and select whether you want to toggle them all on or off.

4. Now, let’s go back and access your website. Notice how it redirects us to the secure version, and we see a secure lock symbol in the location bar.

Struggling with security issues? ChemiCloud is the hosting solution designed with reliability and security in mind! 🔐 Check out our web hosting plans!

This means we’re using a secure connection to the site.

How to force HTTP to HTTPS redirect for Addon Domains?

One other aspect you need to know about this feature – Addon and parked domains inherit their settings from their associated domains.

1. Click the gear icon and “Show Associated Subdomains.”

Show Associated Subdomains

2. The associated subdomain for that addon domain will appear. Set the appropriate force HTTPS redirect toggled to on. A success message will appear.

In our example, we have forced HTTPS for domain.com, which is added as an addon:

3. Now, let’s go back and access your website. Notice how it redirects us to the secure version, and we see a secure lock symbol in the location bar.

That means we’re using a secure connection to the site.

Resolving SSL Mixed Content Warnings

Once doing the redirect from HTTP to HTTPS, if you are facing SSL mixed content warnings, you only need to add the following lines of code to your site’s .htaccess file:

<ifModule mod_headers.c>
Header always set Content-Security-Policy "upgrade-insecure-requests;"
</IfModule>

Now let’s go back and access your website. Notice how it redirects us to the secure version, and we see a secure lock symbol in the location bar.

As always, we’re here if you have any questions!

]]>
https://chemicloud.com/kb/article/force-https-redirect-in-cpanel/feed/ 4 Domains Tutorials nonadult
How to Add Internationalised (IDN) Domain Names in cPanel https://chemicloud.com/kb/article/internationalised-idn-domain-names-in-cpanel/ https://chemicloud.com/kb/article/internationalised-idn-domain-names-in-cpanel/#respond Thu, 15 Aug 2019 09:31:27 +0000 https://chemicloud.com/kb/?post_type=ht_kb&p=2435 Internationalised (IDN) Domain Names work by encoding the domain name using a system called Punycode.

When you wish to add an IDN domain in cPanel (parked/addon) or in WHM, you need to convert the domain name into Punycode for the encoded version of the domain name using a Unicode to Punycode Converter tool.

Then when the user enters a URL containing an IDN domain into the web browser, it will convert the IDN domain into Punycode and resolve that domain.

]]>
https://chemicloud.com/kb/article/internationalised-idn-domain-names-in-cpanel/feed/ 0
How to Hide the Subdomain Created by cPanel for Addon Domains? https://chemicloud.com/kb/article/subdomain-created-by-cpanel-for-addon-domains/ https://chemicloud.com/kb/article/subdomain-created-by-cpanel-for-addon-domains/#respond Tue, 09 Jul 2019 19:58:05 +0000 https://chemicloud.com/kb/?post_type=ht_kb&p=2218 You have probably noticed already that each addon domain you create in cPanel, comes with a designated subdomain. Unfortunately, there is no way to avoid the creation of the subdomain, but you can hide URL if you want to make sure that none of your visitors will know that your website is an addon domain.

As an example, if the main domain is chemicloud.com and the addon domain is webhosting.com, the automatically created subdomain will be webhosting.chemicloud.com.

To hide the subdomain, you can choose to redirect the subdomain to a Not Found page, using .htaccess rule so any visitor that will visit webhosting.chemicloud.com will get a 404 Not Found page.

To do this, enter the following rules in the .htaccess file stored in your addon domain’s web root directory:

<IfModule mod_rewrite.c>
RewriteEngine On 
RewriteCond %{HTTP_HOST} webhosting.chemicloud.com$ 
RewriteRule ^(.*)$ "https://chemicloud.com/404" [R=301,L] 
</IfModule>

Please make sure to update the above rules to correspond with your domain name and addon domain.

Alternatively, you can achieve similar results by simply pointing the subdomain A record to a non-working IP address – something like 1.1.1.1. If you want to find out on how to manage your DNS with cPanel, just check this article.

If you notice any problems or if you need any help, please do not hesitate to contact at any time by opening a ticket from your client area or in LiveChat – we are 24/7 online!

]]>
https://chemicloud.com/kb/article/subdomain-created-by-cpanel-for-addon-domains/feed/ 0
.htaccess 101 – Redirect HTTP Requests to HTTPS https://chemicloud.com/kb/article/redirect-http-to-https/ https://chemicloud.com/kb/article/redirect-http-to-https/#comments Tue, 18 Dec 2018 15:05:13 +0000 https://chemicloud.com/kb/?post_type=article&p=1225 Once you have purchased and installed an SSL Certificate, you should automatically redirect visitors to the secure version of your website ( https:// ).

This ensures data sent to and from your website is securely encrypted. Besides this, according to Google – HTTPS is now a ranking signal among some other factors.

If you are a ChemiCloud customer, you can easily redirect HTTP to HTTPS requests using the force HTTPS redirect feature in cPanel.

How to Manually Redirect HTTP Requests to HTTPS using .htaccess

However, if for some reason your website is not working after you enabled the force redirect in cPanel, you should try to do this via your .htaccess file.

1) Edit/Create a .htaccess file in the folder your site is being served from (normally public_html). You can easily edit the .htaccess file using an FTP client or through the online File Manager in cPanel.

2) Add the following code to the .htaccess file:

# BEGIN HTTPS Redirect
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# END HTTPS Redirect

3) Save the file and check the results in your web browser by trying to access your site using standard HTTP rather than HTTPS.

If it is working correctly, you should be automatically redirected to https.

Please Note: If you do not have an SSL certificate installed, this could cause errors. Please make sure that you have an SSL certificate installed and properly working before attempting this.

How to fix mixed content warnings (insecure requests)

Once doing the redirect from HTTP to HTTPS, if you are facing SSL mixed content warnings, you only need to add the following lines of code to your site’s .htaccess file:

# BEGIN Fix mixed content warnings
<ifModule mod_headers.c>
Header always set Content-Security-Policy "upgrade-insecure-requests;"
</IfModule>
# END Fix mixed content warnings

As always, our customer support team is here to answer any questions you may have!

]]>
https://chemicloud.com/kb/article/redirect-http-to-https/feed/ 1
How to Create a Subdomain in cPanel https://chemicloud.com/kb/article/create-new-subdomain-in-cpanel/ https://chemicloud.com/kb/article/create-new-subdomain-in-cpanel/#comments Tue, 23 May 2017 13:37:03 +0000 https://chemicloud.com/kb/?post_type=article&p=752 A subdomain is a subsection of your website that can exist as a new website without a new domain name. Use them to create memorable URLs for different content areas of your site.

For example, you can create a subdomain for your blog that is accessible through blog.domain.com.

How to create a Subdomain in cPanel

This tutorial assumes that you’re using the Jupiter theme for your cPanel account.

1) Locate the ‘DOMAINS’ section and click the Domains icon

cPanel > Domains
cPanel > Domains

2) Click on the Create A New Domain button

Create a subdomain in cPanel
cPanel > Domains > Create a New Domain

3) Enter the following information:

  • Domain: enter the subdomain that you want to create

  • Document root: leave the checkmark empty for the Share document root option.

  • Home icon: choose a subdirectory for it in your account’s home directory (above public_html). This subdirectory will store your subdomain’s files.

Domains > Create a New Subdomain

By default cPanel automatically fills in the details for the document root. You can either leave them as default or modify the information.

5) The last step is to click Submit button.  The subdomain will be created.

From cPanel > Domains area, you can see the list of subdomains under your main account, and you can manage or delete these subdomains anytime needed.

That’s it! You now know how to create subdomains in cPanel.

]]>
https://chemicloud.com/kb/article/create-new-subdomain-in-cpanel/feed/ 3
How to Create a Parked Domain (Alias) in cPanel https://chemicloud.com/kb/article/how-to-create-new-parked-domain-in-cpanel/ https://chemicloud.com/kb/article/how-to-create-new-parked-domain-in-cpanel/#respond Tue, 23 May 2017 13:15:17 +0000 https://chemicloud.com/kb/?post_type=article&p=748 Parked domains (aliases) are domains that you own, but which do not contain any content. Instead, they point to the contents of another domain or subdomain on your account.

This is useful, for example, to hold a domain that you will later sell, or to redirect traffic to another domain.

For example, you can make www.example.net and www.example.org show content from www.example.com.

How to create a parked domain in cPanel

This tutorial assumes that you’re using the Jupiter theme for your cPanel account.

1) Locate the ‘DOMAINS’ section and click the Domains icon

cPanel > Domains
cPanel > Domains

2) Click on the Create A New Domain button

Create a subdomain in cPanel
cPanel > Domains > Create a New Domain

Enter the following information:

  • Domain: enter the domain name that you want to add

  • Document root: Make sure that the Share document root option is checked.

Parked Domain in cPanel
Domains > Create a New Domain > Parked Domain

From cPanel > Domains area you can see the list of parked domains under your main account and you can manage or delete these parked domains anytime is needed.

That’s it! You now know how to create parked domains in cPanel.

]]>
https://chemicloud.com/kb/article/how-to-create-new-parked-domain-in-cpanel/feed/ 0