• 0Shopping Cart
  • 1 Day® Website
  • 1 Day® Branding
  • 1 Day® Startup
  • 1 Day® SEO
  • 1 Day® Social
  • 1 Day® Digital
  • 1 Day® Branding
  • 1 Day® Website
  • 1 Day® Brandstorm
  • 1 Day® Startup
  • 1 Day® Strategy
  • 1 Day® Digital
  • 1 Day® SEO
  • About Us ▾
    • Our Team
    • Client Reviews
    • Past Clients
    • Press
    • Passion Projects
  • WordPress
    • WordPress Web Design
    • What is WordPress?
    • WordPress Training
  • Resources ▾
    • Blog
    • 25 Elements of a Magnetic Brand
    • How to Name Your Startup
    • A Startup’s Guide to Hiring a Web Design Company
    • Video Tutorials & Resources
  • Training
  • Tools ▾
    • Core Values Exercise
    • Brand Archetype Quiz
    • Brand Voice Exercise
    • Style Moodboards
  • Portfolio
  • Logo Store
  • Contact
  • Get 1 Day Certified
  • Search
  • Menu Menu
bizzy bizzy blog
Content Planning for Your WordPress Website

Adding a Subdomain for a Page on Your WordPress Website

October 24, 2014/in Website Design, WordPress How To's & Tricks /by Candy Phelps

Do you want to have a page on your WordPress website with it’s own subdomain? You’ve come to the right place. Here is a video tutorial showing you how to accomplish just that. This video is for professional web designers and not the faint of heart!

You might use this to create landing pages or demo pages on your website. Click here to download the file (you will need to unzip the file before uploading) or copy the code below:
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @package WordPress
*/


/**
* Tells WordPress to load the WordPress theme and output it.
*
* @var bool
*/


$_GET['page_id']=4323;

define(‘WP_USE_THEMES’, true);

/** Loads the WordPress Environment and Template */
require(‘../wp-blog-header.php’);

How to add a subdomain to a WordPress page instructions:

If you prefer to read the How-To instead of watching the video, here are the steps:

  1. Create your page on your WordPress site by logging into your Dashboard and going to Pages>Add New.
  2. Type in a title and add content to your page. Then, click “Publish.”
  3. Log into your hosting account and navigate to Subdomains. Depending on your host, it might be under Domains or Hosting. Use your host’s search or help section, if you can’t find it.
  4. Add a subdomain that points to a subdirectory. HINT: Only use lower case letters and numbers for both the subdomain name and subdirectory.
  5. Now, go to the File Manager on your hosting account, and click on the subdirectory that was created when you added the subdomain.
  6. Copy the code above for the file called index.php. Open Notepad or any text editor and paste the code into it.
  7. Type in the ID of your new page in the file where it says: $_GET[‘page_id’]=4323; Note: You need to replace the number shown in bold with the ID of your new page. You can find the ID of your page by hovering over the Edit button while editing your page. Look in the lower left corner of your screen to see the URL, which includes post=ID.
  8. Save the file on your computer with file name as index.php. You may need to select a different file type, so you don’t accidentally save the file as index.php.txt.
  9. Back in the File Manager on your hosting account, make sure you are in the subdirectory which the subdomain points to and click Upload. Browse to the file you saved on your computer and upload it to the subdirectory.

 

Read more about the WordPress platform and why it’s the best.

Share this entry
  • Share on Facebook
  • Share on Twitter
  • Share on WhatsApp
  • Share on Pinterest
  • Share on LinkedIn
  • Share on Tumblr
  • Share on Vk
  • Share on Reddit
  • Share by Mail

Recent Posts

  • How to Install WordPress Plugins
  • A Marketing Manager’s Guide to Website Redesign
  • Website Quality Assurance: The Difference For Your Startup
  • A Beginner’s Glossary to Links and Navigating the Internet
  • Top 5 Website Mistakes Made by DIY Website Builders

Categories

Topics

1 Day Branding 1 Day Website Bizzy Bizzy blogging branding business branding business websites content marketing design domain name Enfold enfold theme free icons friday freebie Google Google Analytics graphic design Grow Your SEO how-to icandy academy icon design icons learn wordpress marketing networking plugins rebranding search engine optimization SEO small business websites tutorial web design website design website development website planning website redesign websites wordpress wordpress enfold wordpress how to wordpress plugins WordPress security WordPress training wordpress tutorial YouTube

Let’s Get Bizzy

© Copyright 2022 Bizzy Bizzy | All Rights Reserved

Phone

+1 608-515-1176

Email

info@bizzybizzycreative.com

Madison, WI

2002 Atwood Ave | Unit 211

Contact Us

LGBTQIA flagBlack Lives Matter flag

Newsletter Sign Up
Social Media Profile SpecificationsSocial Media BlogSecurityHow Can I Tell if My Website is Affected by POODLE?
Scroll to top

Take the free Brand Archetype Quiz and download the free ebook by Bizzy Bizzy

 

What’s Your Brand’s Personality?

Take our free 1 Day® Brand Archetype Quiz and download our ebook to discover how your brand fits into the 12 classic brand archetypes!

Find out more