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 6188363
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T02:13:08+00:00 2026-05-24T02:13:08+00:00

I own a website which gives every registered user a dedicated space like this:

  • 0

I own a website which gives every registered user a dedicated space like this:
www.mywebpage.com/user1
www.mywebpage.com/user2
www.mywebpage.com/user3

Inside this path the user has his mini web site.

I’d like to give my users not a path within my domain, but a second level domain like this:
user1.mywebpage.com
user2.mywebpage.com
user3.mywebpage.com

A lot of websites do this, but I can’t figure out how to get it!

  1. Am I supposed to register a CNAME in my dns record for every single user? How the hell can I achieve this with PHP? I don’t think it’s possible to configure godaddy with a human-hand written script.

  2. I may register an alias CNAME which points every second level domain to my top domain, and then check within my top domain the first token of the url retrieving the user: but now I can’t redirect him on a new page (which is the index of his subsite) or I’d lost the web url userx.mywebpage.com.

How can I handle this? I’d appreciate any hint about the right path to follow in order to achieve my goal.

  • 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-24T02:13:08+00:00Added an answer on May 24, 2026 at 2:13 am
    1. Create a wildcard A record (*.mywebpage.com) pointing to the IP of your server.

    2. Create an Apache virtual host for ServerName *.mywebpage.com, pointing all requests to the same document root. Your script looks at the hostname to know which user’s site it is. You do not need to redirect outside of the user’s subdomain. If your script sees the subdomain is “www”, that’s your special case where you display the main website instead of the user’s stuff.

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

Sidebar

Related Questions

I have this script which i use on my own website: <?php error_reporting(E_ALL); $email_subject
I own a website which contain a lot of freeware stuff to download on
I'm building a public website which has its own domain name with pop/smtp mail
Consider this scenario. I have my own website, that I use as my identifier,
I have 1 blog say xyz.blogspot.com ,now am uploading my own website,so I want
I mean this quite literally. A close relative wants to create her own website
On our own website, it's easy to protect against direct links to our video
I am considering creating my own website using Java and am trying to decide
I'm interested in setting up my own website-based game (PBBG) as a hobby. Traffic
I'm about to start hacking my own website, hosted by my QNAP Turbo NAS

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.