I wanted to create a subdomain for my website so that I could link directly to the content separately. It seems many users have had the same issue and Google for once didn't have a good solution. One user, midinerromifutur, came up with an answer - BUY ANOTHER WORDPRESS HOSTED SITE. I was almost ready to give up and add-on a site, but I figured it out!
Here's the high level steps to do this:
- Create a page in WordPress to forward your subdomain to;
- Forward your subdomain in GoDaddy.
These steps assume that you have registered your domain with GoDaddy and have a WordPress site setup.
Here are the steps to do it. I hope it helps!
Create a page in WordPress to forward your subdomain to
I have a WordPress site linked to my GoDaddy account. The following steps may be different if you are using WordPress hosted by a different vendor.
- Log into your WordPress account;
- In your dashboard, click on Pages > Add New. This will open an Edit Page form;
- Enter your target name page name. This will become yourdomain.com/target and will be the URL your subdomain will forward to;
- Enter any details or add content .to show on your page;
- Publish your page. You should see your URL as the "Permalink" value. Copy this link. You will need it to forward your subdomain.
Your URL is now ready to be forwarded to.
Forward your subdomain in GoDaddy
I followed the steps that I found on GoDaddy's help pages found here.
- Log into your GoDaddy account;
- Click on the Account icon in the top right corner to open the Account menu;
- Click My Products;
- In the Domains section, select the DNS button for the domain you want to create the subdomain for;
- Navigate to the Forwarding section.
- Under SUBDOMAIN, select ADD;
- In the SUBDOMAIN textbox, enter your subdomain name i.e. use "target" (omit double quotes) for "target.yourdomain.com";
- Beside the http:// dropdown box under the FORWARD TO: section, enter the URL you created above (yourdomain.com/target);
- For FORWARD TYPE, click the box for Permanent (301);
- For SETTINGS:
- If you want your subdomain to show "yourdomain.com/target" when the page is redirected, click the box for "Forward only";
- If you want your subdomain to show "target.yourdomain.com" when the page is redirected, click the box for "Forward with masking";
- Click the Save button.
Test that your subdomain forwarding works by navigating to http://target.yourdomain.com (where "target" is your subdomain name). This should redirect you to the page you created in WordPress.