Login

Managing subdomains in cPanel

A subdomain is a subsection of your website that can exist as a new website without a new domain name. Use subdomains 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.example.com and www.example.com/blog

(cPanel >> Home >> Domains >> Subdomains)

OVERVIEW

This interface allows you to create and manage subdomains for your cPanel account. A subdomain is a subsection of your website that sometimes exists as a subdirectory of your public_html (document root) directory or your account’s home directory. Subdomains use a prefix in conjunction with the domain name.

For example, if the registered domain name is example.com, the subdomain will be prefix.example.com. You can use subdomains to create unique user accounts for “vanity domains.” This is helpful if, for example, you have a blog, or any other type of website that uses a domain specifically titled for a user.

Note:

Visitors cannot view your subdomain immediately. Changes to DNS records may require two days or more to reach all of the nameservers on the Internet.

CREATE A SUBDOMAIN

To create a subdomain, perform the following steps:

  1. Enter the desired prefix in the Subdomain text box.
  2. Select the desired main domain from the menu.
  3. Enter the home directory for the subdomain in the Document Root text box.

    Note:

    This directory contains the files that pertain to the subdomain.

  4. Click Create.

Warning:

Due to the order in which Apache processes its configuration file, wildcard subdomains may disrupt the functionality of proxy subdomains. We strongly recommend that you use wildcard subdomains only when absolutely necessary, or when you do not need to use proxy subdomains.

When you create an addon domain, parked domain, subdomain, or main domain, the system will attempt to automatically secure that domain with the best-available existing certificate. If no certificate exists, the system will generate a self-signed certificate to secure the new domain.

  • If AutoSSL is enabled for the account that owns the new domain, the system will add a request for an AutoSSL certificate to secure the new domain and install it when it becomes available.
  • To open the subdomain’s main directory with the File Manager interface (cPanel >> Home >> Files >> File Manager), click the link under Document Root that corresponds to that subdomain.

SEARCH SUBDOMAINS

To search existing subdomains, perform the following steps:

  1. Enter the search criteria in the Search text box.
  2. Click Go.

MODIFY A SUBDOMAIN

Modify the document root for a subdomain

To modify the document root for a subdomain, perform the following steps:

  1. Click the notepad icon that corresponds to the subdomain that you want to manage.
  2. Enter the new file path that you want to use as the document root in the available text text box.
  3. Click Change.

Enable or disable subdomain redirection

To enable or disable redirection of a subdomain, perform the following steps:

  1. Click the Manage Redirection link that corresponds to the subdomain that you wish to manage.
  2. If you wish to redirect the subdomain, enter the link to which you want to redirect the subdomain in the available text text box.
  3. Click Save.
  4. To disable the redirect, click Disable Redirection.

Remove a subdomain

To remove an existing subdomain, perform the following steps:

  1. Click the Remove link that corresponds to the subdomain that you want to remove.
  2. Click Yes to confirm that you want to remove the subdomain.
  3. To keep the subdomain, click No.
Domains addon and its uses in cPanel

Domains addon and its uses in cPanel

 

An addon domain is an additional domain that the system stores as a subdomain of your main site. Use addon domains to host additional domains on your account.

(cPanel >> Home >> Domains >> Addon Domains)

OVERVIEW

Addon domains allow you to control multiple domains from a single account. An addon domain links a new domain name to a directory in your account, and then stores its files in that directory.

Important:

Your hosting provider must specify a maximum number of addon domains that you can create (greater than 0) in the Modify an Account interface (WHM >> Home >> Account Functions >> Modify an Account). A value of 0 prevents addon domain creation.

CREATE AN ADDON DOMAIN

To create an addon domain, perform the following steps:

  1. Enter the new addon domain’s name in the New Domain Name text box. When you enter the domain name, cPanel automatically populates the Subdomain and Document Root text boxes.
  2. To create multiple addon domains with the same username and different extensions (for example, example.com and example.net ), manually enter a unique username in the Subdomain text box.
  3. To choose a document root other than the automatically populated value, manually enter the directory name in the Document Root text box.
  4. To create an FTP account for the new addon domain, select the Create an FTP account associated with this Addon Domain checkbox.
    If you select this checkbox, additional settings will appear:

    • cPanel automatically populates the FTP Username text box. To select a different FTP account username, manually enter the desired username.
    • Enter and confirm the new password in the appropriate text boxes.

      Notes:

      • The system evaluates the password that you enter on a scale of 100 points. 0 indicates a weak password, while 100 indicates a very secure password.
      • Some web hosts require a minimum password strength. A green password Strength meter indicates that the password is equal to or greater than the required password strength.
      • Click Password Generator to generate a strong password. For more information, read our Password & Security documentation.
  5. Click Add Domain.

To add files to the addon domain’s home directory, click File Manager.

When you create an addon domain in the cPanel interface, the system automatically creates a subdomain. To alter or delete the subdomain after you create it, you may alter or delete the information that the addon domain’s website displays.

Also, when you create an addon domain, parked domain, subdomain, or main domain, the system will attempt to automatically secure that domain with the best-available existing certificate. If no certificate exists, the system will generate a self-signed certificate to secure the new domain.

If AutoSSL is enabled for the account that owns the new domain, the system will add a request for an AutoSSL certificate to secure the new domain and install it when it becomes available.

Note:

The system stores and displays the addon domain’s traffic statistics as part of the subdomain’s traffic statistics.

MODIFY ADDON DOMAIN

Modify the document root for an addon domain

To modify the document root for an addon domain, perform the following steps:

  1. Click the edit icon () for the addon domain that you wish to manage under the Document Root column.
  2. Enter the new file path to the addon domain’s document root in the available text box.
  3. Click Change.

Enable or disable addon domain redirection

To disable or enable redirection of an addon domain, perform the following steps:

  1. Click Manage Redirection for the addon domain that you wish to manage.
  2. To redirect the domain, enter the link to which you wish to redirect the addon domain.
  3. Click Save, or, to disable the redirection, click Disable Redirection.

Remove an addon domain

To remove an addon domain, perform the following steps:

  1. Click Remove for the addon domain that you wish to remove.
  2. Click Yes.

EMAIL ACCOUNTS IN ADDON DOMAINS

Note:

In the following examples:

  • old_account represents the cPanel account from which you wish to move the addon domain’s email account or accounts.
  • new_account represents the cPanel account to which you wish to move the addon domain’s email account or accounts.
  • domain_name represents the addon domain’s name.
  • email_account represents the name of the addon domain’s email account that you wish to move.

You can create email accounts for addon domains. To learn how to set up an email account for an addon domain, read our Email Accounts documentation.

When you remove the addon domain, its email accounts will no longer appear in the cPanel interface. However, the contents for this email account still exist in the home/username/mail directory.

  • If you add the domain back to the same account as the primary domain, an addon domain, or a parked domain, the email accounts reappear in the cPanel interface.
  • If you move the domain to a different account, you must add the email accounts manually and move the contents of the email account manually. The email accounts must follow the same name and domain format that they previously followed.
    • Use the Email Accounts interface to add new accounts, or run the /scripts/addpop script to manually add new email accounts.
    • To move one email account under a domain, you can run the following command:
       mv /home/old_account/mail/domain_name/email_account /home/new_account/mail/domain_name/

      After you run this command, the system creates the /home/new_account/mail/domain_name/ directory.

    • To move all the email accounts under a domain, run the following command:
      mv /home/old_account/mail/domain_name /home/new_account/mail

      After you move the files, run the following command to change the ownership of the new account:

      chown -R new_account:new_account /home/new_account/mail/domain_name.

Note:

Verify ownership of the email account after you move it.

SEARCH ADDON DOMAINS

To search the list of addon domains, perform the following steps:

  1. Enter the search criteria into the Search box.
  2. Click Go.

The interface lists results that match your search criteria.

ADDON AND ALIAS DOMAINS

CHARACTERISTIC
ADDON DOMAINS
ALIAS DOMAINS
The main domain appears in the address bar. Yes No
The domain uses the following Apache directive: VirtualHost ServerAlias
The domain uses separate logs. Yes No
The domain uses separate stats. Yes No
The system treats the domain as a subdomain (other than the URL). Yes No
This type of domain is ideal for multiple domains that share the same address. No Yes
What Google’s Mobile-First Index Means for Your WordPress Website

What Google’s Mobile-First Index Means for Your WordPress Website

What Google’s Mobile-First Index Means for Your WordPress Website
Mobile-friendliness has been an important factor in Search Engine Optimization (SEO) for a while. Now, Google is rolling out an update that’ll make mobile websites even more important. It’s a significant change, and it could have a negative impact on your SEO if you’re unprepared.Google’s new update is called the ‘mobile-first index’, and it’s true to its name. With this change, the search giant will prioritize your website’s mobile version on its result pages. In this article, we’re going to dig deeper into what Google’s mobile-first index is and what it means for you. We’ll then talk about how to prepare your WordPress website for this brave new world.

Let’s dig in!

What Google’s Mobile First-Index Is (And What It Means for You)

Google's mobile-friendliness test.

Google’s mobile-first index will reward responsive websites.

When you use Google to search for something, you will always see the same results whether you’re using a mobile device or a desktop computer. In the past, Google only used desktop versions of each website to determine its results, which lead to some issues. For instance, this meant that mobile users were served websites that weren’t mobile-friendly or featured less content than their desktop counterparts.

Due to the growing number of searches performed on mobile devices, Google is now rolling out an update called the mobile-first index. The main change is that Google will now index and rank websites by giving priority to their mobile versions. In other words, if your WordPress website provides a shoddy mobile experience, your SEO efforts will take a hit both on desktops and mobiles.

With that in mind, let’s break down how this update will affect you depending on what kind of site you have:

  • Desktop-only website. Google will still rank and index your website, but you should expect to take a hit in the Search Engine Result Pages (SERPs).
  • Both mobile and desktop versions. Your mobile website will take precedence now, which means you need to work on its SEO.
  • Responsive website. You should be safe since your site is already optimized to provide an excellent mobile experience.
  • AMP and non-AMP pages. If available, Google will prioritize the non-AMP mobile version of your website.

If you’re a WordPress user and you’re using a modern theme, you likely don’t need to worry. After all, many popular WordPress themes these days are responsive out of the box, so your website’s already provides an equal mobile and desktop experience. If you’re using an outdated theme or one that’s not responsive, then now is the time to consider a full redesign.

The real problem is if you’re serving two (or more) versions of your website depending on the type of device your visitors use. In that case, Google’s mobile-first index will most certainly have an impact on your site, unless you prepare for it.

How to Prepare Your WordPress Website for Google’s Mobile-First Index (4 Tips)

If your website isn’t fully responsive, this should be your primary goal. However, a full redesign often takes a lot of time, and in the meantime there are other things you can do to prepare for the rollout of Google’s mobile-first index.

Keep in mind – this section assumes you have a website with both mobile and desktop versions. If you only have a desktop version, you can skip ahead to tip number three.

1. Make Sure Your Website’s Mobile Version Includes All Your Key Content

Your WordPress posts tab.

Your mobile WordPress website should include all the same content as its desktop version.

If there are two versions of your website, they both need to feature the same content. Some site owners use stripped-down versions of their sites for mobile users instead of creating mobile-friendly versions with the same content. In the past, this might have been enough, but now you need your mobile website to be as fleshed out as its desktop counterpart.

To be more specific, both your mobile and desktop websites should contain all the same information and features. This is true even if their designs are different. This way, users will still be able to find your content after the rollout of Google’s mobile-first index.

If you’re using a separate WordPress installation to serve a mobile version of your website, you need to ensure it has all the same posts and pages as the desktop alternative. The best way to do this is by exporting your desktop content and importing it into your mobile installation.

2. Add the Same Metadata to All Versions of Your Website

Editing your post's metadata.

Your post and page’s metadata should be the same on both mobile and desktop versions of your site.

Aside from making sure both versions of your website share the same content, you also need to add identical metadata to all their pages. Metadata helps determine how search engines display your pages in the SERPs. Even if your mobile website shares the same content as the desktop version, but doesn’t have the same metadata, your SEO will still take a hit.

Metadata is essential to SEO since it enables you to have more control over your results. You’ve probably spent a lot of time working on your page and article’s meta descriptions, so you should make sure to include them on your mobile website.

The bad news is adding meta descriptions to your mobile content might take some time depending on how many pages your site contains. Even if you’re using an SEO plugin, you’ll still need to copy and paste each meta description into the right place manually. However, the effort is necessary since Google will be looking at your mobile site’s metadata first.

3. Continue to Focus on Website Performance

A website speedtest.

Website performance will still be important both for SEO and usability purposes.

One thing that’s not going to change with the mobile-first index is performance will still play a factor in your SEO. No one likes a slow website, whether it’s on mobile or desktop. More to the point, mobile devices sometimes have less stable connections, which makes website optimization even more critical.

Fortunately, there are a lot of ways you can make your WordPress website faster. Some quick examples include leveraging browser cachingusing a Content Delivery Network (CDN)optimizing your images, and more. Fortunately for you, we’ve written extensively about WordPress optimization, so you should have no problem ensuring that your website runs fast.

4. Use a Mobile-Friendly Theme to Cut Your Work in Half

One of Divi's demo pages.

Using a mobile-friendly theme is the easiest way to create a responsive website.

The easiest thing you can do to make your WordPress website more mobile-friendly is to use a responsive theme. This means that when you design a page, the theme will automatically adapt it to smaller devices, so you only have to do the work once. Almost all major WordPress themes these days are built to support mobile devices with responsive designs.

If you’re not sure what theme to pick, here are a few tips to help you choose the right one:

  • Make sure the theme’s description explicitly says it’s responsive.
  • Look for themes that include preview functionality for different types of devices.
  • Ideally, your theme should enable you to make small adjustments depending on the devices your visitors use.

One theme that fits the bill for all three criteria is Divi. Few themes provide so much control over the way your website looks on a mobile device. It’s also easy to pick up even if you don’t have much experience with WordPress. This will make it lot easier to ensure that your site provides a great mobile experience.

Conclusion

Mobile traffic has been on the rise for a long time and that trend isn’t likely to reverse anytime soon. Google’s mobile-first index is another confirmation that for mobile is king, which means that you need to make sure your site is adapted to the new standard.

In this article, we’ve discussed some ways you can ensure this update doesn’t affect your site’s SEO negatively. These include:

  1. Make sure your website’s mobile version includes the same content.
  2. Add the same metadata to all versions of your website.
  3. Continue to focus on website performance.
  4. Use a mobile-friendly theme if you want to save yourself some headaches.

Do you think Google made the right call by launching its mobile-first index update now? Share your thoughts with us in the comments section below!

How to import and export posts & Pages From One WordPress Website To Another

How to import and export posts & Pages From One WordPress Website To Another

Migrating content to another website is a dilemma that many WordPress users face at one time in their life. The act of copying specific posts and pages over to a new website involves copying table rows from one database to another. Doing this directly using a database management tool such as PHPMyAdmin requires knowledge of MySQL and a good understanding of how databases operate.Thankfully, a more practical solution exists. The Official WordPress Importer allows you to easily export content into another website using an XML file. It allows you to move:

  • Posts, pages and other custom post types
  • Comments
  • Custom fields and post meta
  • Categories, tags and terms from custom taxonomies
  • Authors

I used the WordPress importer a few years ago. At the time, I had an official company blog which I was publishing company news and personal posts. Later, I made the decision to migrate the personal articles to a separate blog on a different domain. The importer allowed me to do this easily.

In this article, I will walk you through the process of exporting and importing content between two WordPress websites. The procedure is simple and does not require any technical knowledge.

You need access to both websites in order to migrate the content successfully. Additionally, I strongly encourage you to take a back up of the database of both websites so that you can restore them if something goes wrong.

Exporting Content To Another Website

The core version of WordPress (i.e. with no plugins installed) has export functionality built-in. You will find the export feature in the main WordPress admin menu in the Tools section.

There are three options available. The first option backs up all content including posts, pages, comments, custom fields, categories and tags.

The WordPress Export Page

The WordPress Export Page

Alternatively, you can choose to only export posts or pages. You can filter what is exported and only export content from particular categories, authors, date range and publication status.

You can filter what posts and pages you want to export.

You can filter what posts and pages you want to export.

The export function will also list any other post types that your website uses. For example, I use the Ninja Popups plugin on my personal blog to display pop up messages. As this is a custom post type, WordPress gives me the option of exporting the content for that post type to another website.

Once you have decided what content to export, save the XML export file to your computer.

Save the file to your computer.

Save the file to your computer.

Importing Content From Another Website

The WordPress import options can also be found in the main admin menu under tools. Import functionality is not built into the WordPress core, however there is a good reason for this.

In total, WordPress provides eight official import systems (many unofficial importing plugins are also available). Therefore, WordPress offers these import systems as plugins so that the core version of WordPress is not bloated.

A range of import plugins are available for WordPress.

A range of import plugins are available for WordPress.

As we are importing from another WordPress website, we need to install the WordPress installer. You can do this manually by downloading the plugin from the official plugin directory. A more practical solution is to click on the WordPress link on the import page. This will bring up a pop up box that allows you to install the plugin directly through your website.

You can install the WordPress importer directly through your WordPress website.

You can install the WordPress importer directly through your WordPress website.

Once the plugin has been installed and activated, you will be taken to the import page. This is where you upload the XML file you exported earlier.

Upload Your Import File

Upload Your Import File

You will then be given the option to assign imported authors to existing authors on your website. This is useful if the same authors exist in both websites. Alternatively, you can create a new account for each author’s posts.

This page also has an option for downloading attachments. When you select this, WordPress will attempt to import all of the images that are attached to the posts and pages you are importing.

Assign imported authors to existing authors.

Assign imported authors to existing authors.

That’s all there is to it. Your content will now be imported into your website. You can verify this by checking your posts and pages.

All information will be identical to what it was before. Therefore, posts and pages will have the same publication date and be assigned to the same categories.

Congratulations - You have imported all content into your new website.

Congratulations – You have imported all content into your new website.

Final Thoughts

Whilst the WordPress importer can be used to migrate all content from one website to another, it is not an ideal solution for transferring a full website to another location as website settings are not transferred.

You should also be aware that the WordPress file upload limit is applied to the WordPress importer. This default upload value is defined by your hosting company. Sometimes this limit is 8MB, sometimes it is as low as 2MB. This can cause difficulties when you are importing a large number of posts and pages.

To address the issue, you need to increase the maximum file upload limit. This can be done in a number of ways including modifying your theme functions.php file, modifying your .htaccess file, and editing the php.ini file. Do not worry if all of this seems too technical.

The best solution is to ask your hosting company to increase the file upload limit for you. If they refuse to do this, you should probably review your hosting situation 🙂

Should any part of the import process go wrong (such as importing the wrong content), simply restore the importing website using the backup you made earlier. This allows you to start the import process from scratch and ensures that everything goes the way you want it to.

If you found this tutorial useful, I encourage you to subscribe to Elegant Themes and get our latest posts delivered to you via RSS or your favorite social media service.

To Import Posts & Pages From One WordPress Website To Another

Exporting Content To Another Website

The core version of WordPress (i.e. with no plugins installed) has export functionality built-in. You will find the export feature in the main WordPress admin menu in the Tools section.

There are three options available. The first option backs up all content including posts, pages, comments, custom fields, categories and tags.

The WordPress Export Page

The WordPress Export Page

Alternatively, you can choose to only export posts or pages. You can filter what is exported and only export content from particular categories, authors, date range and publication status.

You can filter what posts and pages you want to export.

You can filter what posts and pages you want to export.

The export function will also list any other post types that your website uses. For example, I use the Ninja Popups plugin on my personal blog to display pop up messages. As this is a custom post type, WordPress gives me the option of exporting the content for that post type to another website.

Once you have decided what content to export, save the XML export file to your computer.

Save the file to your computer.

Save the file to your computer.

Importing Content From Another Website

The WordPress import options can also be found in the main admin menu under tools. Import functionality is not built into the WordPress core, however there is a good reason for this.

In total, WordPress provides eight official import systems (many unofficial importing plugins are also available). Therefore, WordPress offers these import systems as plugins so that the core version of WordPress is not bloated.

A range of import plugins are available for WordPress.

A range of import plugins are available for WordPress.

As we are importing from another WordPress website, we need to install the WordPress installer. You can do this manually by downloading the plugin from the official plugin directory. A more practical solution is to click on the WordPress link on the import page. This will bring up a pop up box that allows you to install the plugin directly through your website.

You can install the WordPress importer directly through your WordPress website.

You can install the WordPress importer directly through your WordPress website.

Once the plugin has been installed and activated, you will be taken to the import page. This is where you upload the XML file you exported earlier.

Upload Your Import File

Upload Your Import File

You will then be given the option to assign imported authors to existing authors on your website. This is useful if the same authors exist in both websites. Alternatively, you can create a new account for each author’s posts.

This page also has an option for downloading attachments. When you select this, WordPress will attempt to import all of the images that are attached to the posts and pages you are importing.

Assign imported authors to existing authors.

Assign imported authors to existing authors.

That’s all there is to it. Your content will now be imported into your website. You can verify this by checking your posts and pages.

All information will be identical to what it was before. Therefore, posts and pages will have the same publication date and be assigned to the same categories.

Congratulations - You have imported all content into your new website.

Congratulations – You have imported all content into your new website.

Final Thoughts

Whilst the WordPress importer can be used to migrate all content from one website to another, it is not an ideal solution for transferring a full website to another location as website settings are not transferred.

You should also be aware that the WordPress file upload limit is applied to the WordPress importer. This default upload value is defined by your hosting company. Sometimes this limit is 8MB, sometimes it is as low as 2MB. This can cause difficulties when you are importing a large number of posts and pages.

To address the issue, you need to increase the maximum file upload limit. This can be done in a number of ways including modifying your theme functions.php file, modifying your .htaccess file, and editing the php.ini file. Do not worry if all of this seems too technical.

The best solution is to ask your hosting company to increase the file upload limit for you. If they refuse to do this, you should probably review your hosting situation 🙂

Should any part of the import process go wrong (such as importing the wrong content), simply restore the importing website using the backup you made earlier. This allows you to start the import process from scratch and ensures that everything goes the way you want it to.

If you found this tutorial useful, I encourage you to subscribe for our updates and get our latest posts delivered to you via RSS or your favorite social media service.