Title: Using a subdomain
Last modified: July 28, 2022

---

# Using a subdomain

 *  [ronanwni](https://wordpress.org/support/users/ronanwni/)
 * (@ronanwni)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/using-a-subdomain/)
 * Hi there,
 * Does your plugin work with subdomains?
 * So if I wanted to map test.armagh.space to [https://www.armagh.space/test-page-subdomain](https://www.armagh.space/test-page-subdomain),
   should that work?
 * I have set up an “A Record” to point the test.armagh.space to the same IP where
   armagh.space is hosted and added the subdomain in to the hosting control panel(
   Plesk):
    [https://i.gyazo.com/a88c59985708e9b6f8612008e99398fb.png](https://i.gyazo.com/a88c59985708e9b6f8612008e99398fb.png)
 * I have then done the following (screenshot below) within your plugin on armagh.
   space, but no luck.
    [https://i.gyazo.com/edbd4b5b578f0e16e9526f3357e0543f.png](https://i.gyazo.com/edbd4b5b578f0e16e9526f3357e0543f.png)
 * Any ideas?
 * Thanks,
    Ronan
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fusing-a-subdomain%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [matthias.wagner](https://wordpress.org/support/users/matthiaswagner/)
 * (@matthiaswagner)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/using-a-subdomain/#post-15866714)
 * hello,
    yep subdomains work with our plugin.
 * have you followed the installation instructions (especially the test with the
   txt-file)?
 *  Thread Starter [ronanwni](https://wordpress.org/support/users/ronanwni/)
 * (@ronanwni)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/using-a-subdomain/#post-15867226)
 * Thanks for the reply.
 * I’ve had a look at the installation instructions. I’ve just noticed at step 2
   it says the sub domain needs to be pointed to the same root directory as the 
   WordPress website, so within the Plesk control panel I changed the sub domain
   from “No web hosting” to “Web hosting”.
 * This then allowed me to select the home directory, which I then selected to be
   the folder where the WordPress website is located which seems to have helped.
 * I then deleted the mapping I had set up within your plugin so I could do the 
   test.txt file test, which worked perfectly. I could view the txt file on both
   the main domain and sub domain.
 * I then put the mapping back in to your plugin. Now when you go to test.armagh.
   space, it redirects to [https://test.armagh.space/test-page-subdomain](https://test.armagh.space/test-page-subdomain)
   which is just a 404 page.
 * I need that when you go to test.armagh.space it just displays the [https://www.armagh.space/test-page-subdomain](https://www.armagh.space/test-page-subdomain)
   page but keeps the test.armagh.space url in the address bar.
 * Have I perhaps set up your plugin incorrectly? Please see screenshot below.
    
   [https://i.gyazo.com/9f558a3b50f36d605092d7c431bf7cc8.png](https://i.gyazo.com/9f558a3b50f36d605092d7c431bf7cc8.png)
 * Thanks
    -  This reply was modified 3 years, 10 months ago by [ronanwni](https://wordpress.org/support/users/ronanwni/).
 *  Plugin Author [matthias.wagner](https://wordpress.org/support/users/matthiaswagner/)
 * (@matthiaswagner)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/using-a-subdomain/#post-15867252)
 * hy,
 * glad to hear that setup worked.
 * sometimes wordpress automatic redirections cause such stuff. could you try to
   rename the url slug of your test page to something like “try-page-subdomain” 
   so that “test” does not occur?
 *  Thread Starter [ronanwni](https://wordpress.org/support/users/ronanwni/)
 * (@ronanwni)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/using-a-subdomain/#post-15867277)
 * Thanks for the quick reply.
 * Same issue seems to be occurring. I renamed the slug to “try-page-subdomain” 
   and now when I now go to test.armagh.space, it just redirects to [https://test.armagh.space/try-page-subdomain](https://test.armagh.space/try-page-subdomain)
   with a 404 error.
 * Thanks
 *  Thread Starter [ronanwni](https://wordpress.org/support/users/ronanwni/)
 * (@ronanwni)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/using-a-subdomain/#post-15876384)
 * [@matthiaswagner](https://wordpress.org/support/users/matthiaswagner/) – Any 
   ideas on how to fix this?
 * Thanks
 *  Plugin Author [matthias.wagner](https://wordpress.org/support/users/matthiaswagner/)
 * (@matthiaswagner)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/using-a-subdomain/#post-15876552)
 * hy,
    in some rare cases this happens. unfortunately we have not yet figured out
   what causes this behaviour :/
 * please have a look at this thread: [https://wordpress.org/support/topic/one-of-the-domains-i-mapped-301-redirects-to-main-homepage-domain/](https://wordpress.org/support/topic/one-of-the-domains-i-mapped-301-redirects-to-main-homepage-domain/)
 * you can try the steps discussed there too.
 * in the end that user made a switch to another plugin “domain mapping system”.
   we can also recommend it and have already partnered with that other plugin. so
   if you like it and maybe want to use the premium version, you could also get 
   a voucher from me for discount.
 * matt

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Using a subdomain’ is closed to new replies.

 * ![](https://ps.w.org/multiple-domain-mapping-on-single-site/assets/icon-256x256.
   png?rev=1595238)
 * [Multiple Domain Mapping on Single Site](https://wordpress.org/plugins/multiple-domain-mapping-on-single-site/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/multiple-domain-mapping-on-single-site/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/multiple-domain-mapping-on-single-site/)
 * [Active Topics](https://wordpress.org/support/plugin/multiple-domain-mapping-on-single-site/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/multiple-domain-mapping-on-single-site/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/multiple-domain-mapping-on-single-site/reviews/)

 * 6 replies
 * 4 participants
 * Last reply from: [matthias.wagner](https://wordpress.org/support/users/matthiaswagner/)
 * Last activity: [3 years, 10 months ago](https://wordpress.org/support/topic/using-a-subdomain/#post-15876552)
 * Status: not resolved