Hi guys, I'm trying to make a service for users where they can chose a username and that instantly gives them a subdomain url.

e.g. johny.peoplelist.com

At the same time, I have physical folder with static files of user, e.g

public_html/users/johny/

It has 5 .html pages like index.html, aboutme.html, photos.html etc

What is the best way to make it work with minimal resources from server side. Pages are static html so would like them to stay this way and avoid any php inquiries if possible, however, not sure maybe it is impossible without php;

If any ideas, please let me know.

Sandy

Ehh, I'm pretty sure you can't translate a wildcard in this case, so that *.peoplelist.com transfers whatever the wildcard represents to peoplelist.com/users/*

So you have to make some automated zone editor for making A records in your DNS server, and then do the Apache configuration.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.