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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T00:00:14+00:00 2026-05-19T00:00:14+00:00

I am developing a website based on users dashboard and login and profile. I

  • 0

I am developing a website based on users dashboard and login and profile. I have an issue with profiles and users.

Can someone explain me how Twitter or even Quora manages to assign every user a special domain like twitter.com/username?

They even do it instantly? I know how to do that like manually, but how do they do it instantly? I know it’s a dumb question, but would be glad if you could help.

Thank you

  • 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-19T00:00:15+00:00Added an answer on May 19, 2026 at 12:00 am

    That is not a domain. It’s a path on the domain. They rewrite domain.com/stuff to a controller. In php, you may route it to domain.com/profile.php?username=stuff. Then, that page queries the database and populates the view with the necessary information.

    <?php
    // sample profile.php
    // NOTE - this is not secure - it's only to provide a general idea
    // your code will vary - assuming a mysql connection already exists
    // i'm ignoring a lot here - this is just a basic idea
    
    $username = $_GET['username'];
    $qry = mysql_query("SELECT * FROM profiles WHERE username = '".mysql_real_escape_string($username)."' LIMIT 1"); // to prevent injection
    
    while($row = mysql_fetch_assoc($qry)){
      $profile = $row
    }
    ?>
    
    <html>
      ...
    
      <span><?php echo $profile['first_name']; ?></span>
      <!--- $profile[column_name] --->
    </html>
    

    If you are making a site with profiles and pages, you should not be making an individual profile page for every user – use a “template” and then fill in necessary values. If its a custom page, store things like colors and bg images in the database.

    It’s just one SQL query, so it’s pretty fast.

    If you are using apache, you can use .htaccess to rewrite the URLs

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

Sidebar

Related Questions

I am developing a .NET 3.5 Web Forms based website that uses URL Routing.
I'm developing a website for a client of ours and have been having a
I'm developing this website: http://parkoura.tk/a/sandbox/ I am using an ajax navigation. I have a
I'm currently developing a PM system for a website, in which users must be
I am developing a ASP.Net website (Multibranch access and Multiuser Access) based on windows
I have been developing a website on a 1440*900 resolution monitor..The page has lots
I'm currently developing a website which will have heavy load, and a certain amount
I have been asked to add support to a xml based website. I have
I am developing a mobile website but have encountered this problem - a font
I am developing a website that uses Facebook. Now for managing users I thought

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.