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

  • Home
  • SEARCH
  • 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 328985
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T09:32:46+00:00 2026-05-12T09:32:46+00:00

I built a LAMP web application that let’s users create their own profile page

  • 0

I built a LAMP web application that let’s users create their own profile page where they can upload their resume and portfolio. The url for a person’s profile will be something like

http://jobbank.com/user/johndoe

John Doe registers the domain name http://johndoefreelancer.com and he wants it to point to http://jobbank.com/user/johndoe. Anyone who visits johndoefreelancer.com should not be aware that it’s driven by http://jobbank.com/user/johndoe. This means that the browser url should persistently show addresses such as:

http://johndoefreelancer.com/aboutme (really points to jobbank.com/user/johndoe/aboutme)
http://johndoefreelancer.com/portfolio (really points to jobbank.com/user/johndoe/portfolio)

Additionally, clicking on any links [a href=””] should keep you at johndoefreelancer.com instead of sending you to jobbank.com.

My question is, what is the best way to achieve this?

I’m considering:
1) Give instructions to users on how to domain forward with masking

2) Instruct users to fillout the field $homeUrl in their User Profile information, which is saved to the database

3) In my PHP code, if $homeUrl exists, replace all [a href=”$_SERVER[‘HTTP_HOST’]”] with [a href=”$homeUrl”]

Is this the right approach? Is there a better way?

  • 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-12T09:32:46+00:00Added an answer on May 12, 2026 at 9:32 am

    An alternative approach would be to tell your users to point their domains to your IP and set them up as name-based virtual hosts. The benefits are:

    1. It’s much easier for the user to set up then forward with masking (the latter may not even be possible depending on registrar)
    2. You don’t have to deal with URL rewriting in your PHP code.

    This would be easier to setup if you did not have to use /user/johndoe prefix for your URLs (which you don’t really need to because you can do a domain lookup in your code to determine user id), but is possible with the prefix as well – it’s just that mod_rewrite setup would have to be more involved in that case (you’ll need to do it per domain).

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

Sidebar

Related Questions

We built a grant application system for a client. They've now asked for some
Is there a built-in function/method that can check if a given string is a
Which built in (if any) tool can I use to determine the allocation unit
I built an application which displays the records from database in the window and
I built a Winform app several months ago that schedules appointments for repair techs.
Does C# have built-in support for parsing strings of page numbers? By page numbers,
I have built an MSI that I would like to deploy, and update frequently.
The built-in Math.Pow() function in .NET raises a double base to a double exponent
I built a template-based document generator using the Open XML SDK (1.0) , the
I have a custom built ajax [div] based dynamic dropdown. I have an [input]

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.