{"id":93402,"date":"2021-01-13T09:44:12","date_gmt":"2021-01-13T15:44:12","guid":{"rendered":"https:\/\/wpengine.com\/?post_type=resource&#038;p=93402"},"modified":"2024-09-29T10:13:18","modified_gmt":"2024-09-29T15:13:18","slug":"install-wordpress-on-subdomain","status":"publish","type":"resource","link":"https:\/\/wpengine.com\/case-studies\/resources\/install-wordpress-on-subdomain\/","title":{"rendered":"How to Install WordPress on a Subdomain"},"content":{"rendered":"\n<p>The thought of running a second or even a third instance of WordPress to compliment your current website might seem complicated and confusing. However, there are times when making a small portion of your site perform in a certain way might alter it too much for your liking.&nbsp;<\/p>\n\n\n\n<p>That\u2019s where subdomains come in. Simply put, subdomains are nested hierarchically inside your site\u2019s primary domain. When you choose to install WordPress in a subdomain, you create the opportunity to build a separate and unique website that can still be tied to your main site in a meaningful way.&nbsp;<\/p>\n\n\n\n\n\n<p>In this article, we\u2019ll go over how to install WordPress on a subdomain. We\u2019ll also discuss some of the potential benefits of taking this approach. If you\u2019re ready, let\u2019s get started!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Installing WordPress on a subdomain<\/h2>\n\n\n\n<p>A subdomain can be considered a partner to your website\u2019s main domain. It gives you the option to use the recognizable portion of your primary domain name, while adding a new element to it. It\u2019s a bit like creating a second WordPress site.This new domain has all the opportunities any domain has, but also maintains a visible link to the primary one.&nbsp;<\/p>\n\n\n\n<p>For example, our website\u2019s primary domain is <em>casestudies26.wpengine.com<\/em>. Let\u2019s say we wanted to run a separate WordPress installation explicitly designed to house an eCommerce store for branded merchandise. To do that, we could create a new WordPress page as a subdomain called <em>shop.wpengine.com<\/em>, and install and configure a fresh version of WordPress on it.&nbsp;<\/p>\n\n\n\n<p>Once you\u2019ve decided to add a new installation of WordPress on a subdomain, however, you\u2019ll want to keep a few things in mind regarding Search Engine Optimization (SEO). Google specifically treats subdomains as separate and individual websites, regardless of how closely linked they are to your main website.<\/p>\n\n\n\n<p>Therefore, you\u2019ll want to make sure you\u2019ve followed <a href=\"https:\/\/seranking.com\/blog\/seo-for-subdomains\/\" target=\"_blank\" rel=\"noreferrer noopener\">some key best practices<\/a> regarding subdomain indexing and SEO. That way, you won\u2019t harm the rankings of either site.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to install WordPress on a subdomain<\/h2>\n\n\n\n<p>Now that you understand why you might want to create a WordPress page as a subdomain, let\u2019s talk about how to do it. The following five steps will take you through the entire process.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Create a subdomain of your root domain<\/h3>\n\n\n\n<p>Depending on which web host you use, creating a subdomain can be quite easy. Since subdomains use the existing domain name you\u2019ve already registered, they are usually free to create.<\/p>\n\n\n\n<p>If you\u2019re hosting your site here at WP Engine, we\u2019ve built domain management right into our <a href=\"https:\/\/wpengine.com\/support\/wp-engine-user-portal\/\" target=\"_blank\" rel=\"noreferrer noopener\">User Portal<\/a>. First, it\u2019s best to make your account a <a href=\"https:\/\/wpengine.com\/support\/what-is-wordpress-multisite\/\" target=\"_blank\" rel=\"noreferrer noopener\">multisite account<\/a>. This is easy to enable in your User Portal under <em>Sites &gt; Utilities<\/em>:<\/p>\n\n\n\n<p>You can add domains in the User Portal as well. Once you navigate to <em>Sites<\/em> and select the site you\u2019re interested in using, you can find <em>Domains<\/em> in the menu. Simply click on <em>Add Domain<\/em>, and follow the prompts:<\/p>\n\n\n\n<p>If you\u2019re using another WordPress hosting subdomain provider, you\u2019ll likely have <a href=\"https:\/\/documentation.cpanel.net\/display\/CKB\/How+to+Log+in+to+Your+Server+or+Account\" target=\"_blank\" rel=\"noreferrer noopener\">access to cPanel<\/a> or a similar dashboard. Once you log in to your cPanel, you\u2019ll see a <em>Subdomain<\/em> option in the <em>Domains<\/em> section of the dashboard:<\/p>\n\n\n\n<p>Click on <em>Subdomains<\/em> to access options for creating space for your new WordPress installation. You\u2019ll be directed to designate your subdomain name and select the primary domain you want to assign it to:<\/p>\n\n\n\n<p>Once you complete that step, you can either open your file manager within cPanel, or navigate back to your dashboard and locate any auto-installer options you have access to.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Download WordPress<\/h3>\n\n\n\n<p>If you choose to install WordPress manually, you\u2019ll need to first download the software. You can do this by going to <a href=\"https:\/\/wordpress.org\" target=\"_blank\" rel=\"noreferrer noopener\">the WordPress website<\/a> and clicking on the <em>Get WordPress<\/em> button. This will take you to the download page:&nbsp;<\/p>\n\n\n\n<p>Once you\u2019ve downloaded the zipped file, take note of where you saved it. You\u2019ll also want to go ahead and unzip the files.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3: Create a new database and users<\/h3>\n\n\n\n<p>Next, you\u2019ll need to create a new database with users for your subdomain. You can do this in your cPanel by locating the <em>Databases<\/em> section of your dashboard:<\/p>\n\n\n\n<p>Depending on your host, you might have the option to use a MySQL Database wizard. Otherwise, you can simply click on <em>MySQL Databases<\/em>. You\u2019ll be taken to a page with information about your current databases, and the option to create new databases and users:<\/p>\n\n\n\n<p>Once you set up the database and users for your subdomain, you just need to make sure you take the final step and actually assign your new users to the subdomain. In addition, you\u2019ll need to enter your database name and information later during the installation process, so you might want to keep it handy.&nbsp;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 4: Upload your WordPress installation files<\/h3>\n\n\n\n<p>Next, you\u2019ll be uploading the WordPress installation files you previously downloaded and unzipped. You can either work within your cPanel\u2019s file manager or opt to use your favorite <a href=\"https:\/\/wpengine.com\/support\/sftp\/\" target=\"_blank\" rel=\"noreferrer noopener\">Secure File Transfer Protocol (SFTP)<\/a> application.<\/p>\n\n\n\n<p>In the cPanel file manager, you\u2019ll see your new subdomain\u2019s file tree:<\/p>\n\n\n\n<p>You can now upload your WordPress installation files into the <em>public\/html<\/em> directory of your subdomain. Then, all that\u2019s left is to complete the installation process.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 5: Run the WordPress installation script<\/h3>\n\n\n\n<p>Now you\u2019re ready to run the WordPress installation script. You can do that by going to <em>mysubdomain.mysite.com\/wp-admin\/install.php<\/em> in your web browser. If you did not set up your <em>wp-config.php<\/em> file manually, WordPress will prompt you to create one now:<\/p>\n\n\n\n<p>This is also where you\u2019ll need your database information. WordPress will use these details to create the <em>wp-config.php<\/em> file for you.<\/p>\n\n\n\n<p>Once that is successfully completed, you\u2019ll be guided through the rest of the standard WordPress setup process. You\u2019ll create an admin user name and password, and be ready to get to work on your new subdomain site. As a reminder, you\u2019ll need to consider <a href=\"https:\/\/wpengine.com\/wordpress-hosting\/\" target=\"_blank\" rel=\"noreferrer noopener\">WordPress hosting<\/a> for your subdomain and how this may impact your site.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Hosting a WordPress subdomain<\/strong><\/h2>\n\n\n\n<p>WordPress subdomains can be added to your existing <a href=\"https:\/\/wpengine.com\/plans\/\" target=\"_blank\" rel=\"noreferrer noopener\">hosting plan<\/a> easily. Many hosting providers don\u2019t include additional charges for adding a new WordPress page as a subdomain (or even adding multiple subdomains).<\/p>\n\n\n\n<p>Exactly how this works does vary from provider to provider, though. So it\u2019s always a good idea to check with your web host before making any changes to your account.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Alternative: Creating a second WordPress site<\/strong><\/h2>\n\n\n\n<p>If you\u2019d rather not use a subdomain, another option is to create a second WordPress site. This can be done using <a href=\"https:\/\/wpengine.com\/support\/what-is-wordpress-multisite\/\" target=\"_blank\" rel=\"noreferrer noopener\">WordPress multisite<\/a>, so that you can manage both sites from a single dashboard.<\/p>\n\n\n\n<p>The main advantage of using a second WordPress site is domain name flexibility. You can choose whatever name you like, whereas a subdomain\u2019s address will always contain your primary domain name. The main disadvantage is cost: a second site requires a second domain name and may also involve changes to your hosting plan, both of which cost money.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Expand your WordPress site with WP Engine<\/h2>\n\n\n\n<p>Sometimes the additions you want to make to your site just don\u2019t fit within your current theme or structure. This is an excellent opportunity to expand your site\u2019s offerings by creating a WordPress subdomain and running another instance of WordPress.<\/p>\n\n\n\n<p>Here at WP Engine, we want you to feel confident about taking on new projects. That\u2019s why we offer <a href=\"https:\/\/developer.wordpress.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">resources<\/a> for WordPress users and developers alike. We also have a wide variety of <a href=\"https:\/\/wpengine.com\/plans\/\" target=\"_blank\" rel=\"noreferrer noopener\">hosting plans and solutions<\/a> to help you create unique digital experiences for your users!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The thought of running a second or even a third instance of WordPress to compliment your current website might seem complicated and confusing. However, there are times when making a small portion of your site perform in a certain way might alter it too much for your liking.&nbsp; That\u2019s where subdomains come in. Simply put,<span class=\"tile__ellipses\">&hellip;<\/span><span class=\"tile__ellipses--animated\"><\/span><\/p>\n","protected":false},"author":297,"featured_media":114212,"template":"","resource-topic":[901],"resource-role":[896,899],"resource-type":[916],"class_list":["post-93402","resource","type-resource","status-publish","has-post-thumbnail","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How To Install WordPress on A Subdomain | WP Engine\u00ae<\/title>\n<meta name=\"description\" content=\"Learn how to install WordPress on a subdomain with our comprehensive guide. Simplify the process and start building your site today!\" \/>\n<meta name=\"robots\" content=\"noindex, follow\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Install WordPress on A Subdomain | WP Engine\u00ae\" \/>\n<meta property=\"og:description\" content=\"Learn how to install WordPress on a subdomain with our comprehensive guide. Simplify the process and start building your site today!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/wpengine.com\/case-studies\/resources\/install-wordpress-on-subdomain\/\" \/>\n<meta property=\"og:site_name\" content=\"WP Engine\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/wpengine\" \/>\n<meta property=\"article:modified_time\" content=\"2024-09-29T15:13:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2019\/09\/shutterstock_1155969124-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1100\" \/>\n\t<meta property=\"og:image:height\" content=\"500\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@wpengine\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"6 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/wpengine.com\/case-studies\/resources\/install-wordpress-on-subdomain\/\",\"url\":\"https:\/\/wpengine.com\/case-studies\/resources\/install-wordpress-on-subdomain\/\",\"name\":\"How To Install WordPress on A Subdomain | WP Engine\u00ae\",\"isPartOf\":{\"@id\":\"https:\/\/wpengine.com\/case-studies\/#website\"},\"datePublished\":\"2021-01-13T15:44:12+00:00\",\"dateModified\":\"2024-09-29T15:13:18+00:00\",\"description\":\"Learn how to install WordPress on a subdomain with our comprehensive guide. Simplify the process and start building your site today!\",\"breadcrumb\":{\"@id\":\"https:\/\/wpengine.com\/case-studies\/resources\/install-wordpress-on-subdomain\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/wpengine.com\/case-studies\/resources\/install-wordpress-on-subdomain\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/wpengine.com\/case-studies\/resources\/install-wordpress-on-subdomain\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/wpengine.com\/case-studies\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Resources\",\"item\":\"https:\/\/wpengine.com\/case-studies\/resources\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to Install WordPress on a Subdomain\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/wpengine.com\/case-studies\/#website\",\"url\":\"https:\/\/wpengine.com\/case-studies\/\",\"name\":\"WP Engine\",\"description\":\"Managed Hosting for WordPress\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/wpengine.com\/case-studies\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/wpengine.com\/case-studies\/#\/schema\/person\/3a22232b01de39dcf588fb8e421c0521\",\"name\":\"Erin Myers\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/wpengine.com\/case-studies\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/cd881e115bc28c81642ec61752db9981ece9ee8b4c81498a9b6276b9cdcaf5e6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/cd881e115bc28c81642ec61752db9981ece9ee8b4c81498a9b6276b9cdcaf5e6?s=96&d=mm&r=g\",\"caption\":\"Erin Myers\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How To Install WordPress on A Subdomain | WP Engine\u00ae","description":"Learn how to install WordPress on a subdomain with our comprehensive guide. Simplify the process and start building your site today!","robots":{"index":"noindex","follow":"follow"},"og_locale":"en_US","og_type":"article","og_title":"How To Install WordPress on A Subdomain | WP Engine\u00ae","og_description":"Learn how to install WordPress on a subdomain with our comprehensive guide. Simplify the process and start building your site today!","og_url":"https:\/\/wpengine.com\/case-studies\/resources\/install-wordpress-on-subdomain\/","og_site_name":"WP Engine","article_publisher":"https:\/\/www.facebook.com\/wpengine","article_modified_time":"2024-09-29T15:13:18+00:00","og_image":[{"width":1100,"height":500,"url":"https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2019\/09\/shutterstock_1155969124-1.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_site":"@wpengine","twitter_misc":{"Est. reading time":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/wpengine.com\/case-studies\/resources\/install-wordpress-on-subdomain\/","url":"https:\/\/wpengine.com\/case-studies\/resources\/install-wordpress-on-subdomain\/","name":"How To Install WordPress on A Subdomain | WP Engine\u00ae","isPartOf":{"@id":"https:\/\/wpengine.com\/case-studies\/#website"},"datePublished":"2021-01-13T15:44:12+00:00","dateModified":"2024-09-29T15:13:18+00:00","description":"Learn how to install WordPress on a subdomain with our comprehensive guide. Simplify the process and start building your site today!","breadcrumb":{"@id":"https:\/\/wpengine.com\/case-studies\/resources\/install-wordpress-on-subdomain\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/wpengine.com\/case-studies\/resources\/install-wordpress-on-subdomain\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/wpengine.com\/case-studies\/resources\/install-wordpress-on-subdomain\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/wpengine.com\/case-studies\/"},{"@type":"ListItem","position":2,"name":"Resources","item":"https:\/\/wpengine.com\/case-studies\/resources\/"},{"@type":"ListItem","position":3,"name":"How to Install WordPress on a Subdomain"}]},{"@type":"WebSite","@id":"https:\/\/wpengine.com\/case-studies\/#website","url":"https:\/\/wpengine.com\/case-studies\/","name":"WP Engine","description":"Managed Hosting for WordPress","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/wpengine.com\/case-studies\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/wpengine.com\/case-studies\/#\/schema\/person\/3a22232b01de39dcf588fb8e421c0521","name":"Erin Myers","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/wpengine.com\/case-studies\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/cd881e115bc28c81642ec61752db9981ece9ee8b4c81498a9b6276b9cdcaf5e6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cd881e115bc28c81642ec61752db9981ece9ee8b4c81498a9b6276b9cdcaf5e6?s=96&d=mm&r=g","caption":"Erin Myers"}}]}},"acf":[],"grid_image_url":"https:\/\/wpengine.com\/case-studies\/wp-content\/uploads\/2019\/09\/shutterstock_534008512.jpg","media-type":{"term_id":916,"name":"Article","slug":"article"},"role":"<strong>Roles:<\/strong> Developer, Site Owner","topic":"<strong>Topics:<\/strong> WordPress","_links":{"self":[{"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/resource\/93402","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/resource"}],"about":[{"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/types\/resource"}],"author":[{"embeddable":true,"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/users\/297"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/media\/114212"}],"wp:attachment":[{"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/media?parent=93402"}],"wp:term":[{"taxonomy":"resource-topic","embeddable":true,"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/resource-topic?post=93402"},{"taxonomy":"resource-role","embeddable":true,"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/resource-role?post=93402"},{"taxonomy":"resource-type","embeddable":true,"href":"https:\/\/wpengine.com\/case-studies\/wp-json\/wp\/v2\/resource-type?post=93402"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}