Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6892193
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:30:14+00:00 2026-05-27T06:30:14+00:00

I have this site where a user selects a template for his site. I

  • 0

I have this site where a user selects a template for his site. I have to create a sub domain for that user on my site which will apply the selected template. My question is can I create a subdomain programmatically if yes then how? I am using cakephp. I want that users site will be accessible on some url after selecting a template.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T06:30:15+00:00Added an answer on May 27, 2026 at 6:30 am

    Well, if you’re running your own DNS servers, you can programmatically append new sub-domains to your DNS configuration files. I would probably not recommend that.

    What most sites (like WordPress.com and what not) most likely do is setup their DNS to point *.wordpress.com to their web server, then programmatically see if the sub-domain matches a valid account, then respond accordingly.

    Most DNS servers support wildcard domains, such as:

    *.yoursite.com.   3600 IN  MX 10 host1.yoursite.com.
    

    so consult your manuals or help files for whatever DNS service you’re using. Hope this helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this example FactoryGirl.define do @site = FactoryGirl.create(:my_site) factory :user do email {
Let's say that I have a site where once the user selects a few
I have create a site embedded Google mapusing api V3 that shows our 4
I have a form on my site. The user enters their e-mail and selects
Let's say a user from a global site selects his/her country from a drop
So I have this site that dynamically posts content using jquery and php. I
I have a site where the user currently selects an option (event) from a
I have a 3 page registration site. When the user selects one of three
I am trying to create a sidebar for a site that will allow a
ok so i have this helper def playlist_count(user, site_id) user.companies.local(site_id).map(&:playlists).flatten.count end which will return

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.