URL creation? I don't know what it's called, help me find a name so I can look it up!

I would love to google my question, but I don’t know how this is called…

I want to create URLs for each user of a site with this format:

www.mysite.com/user1

Facebook does this, for example. In a static page I’d do it with a folder and index file for each user, but that’s not practical if you have too many users. Could you explain how this is done or at least how it is called so I can find myself something to read?

Thanks!!!

How is your site constructed? Is it static, or does it use a CMS, or are you trying to build something in PHP yourself to automate this. How do users get registered etc? Will you do it, or do they sign up and get the URL automatically?

You’d use Apache’s mod_rewrite in tandem with a PHP script.

Search for rewrite urls PHP, or mod_rewrite.

Thanks both of you for your answers. Mod_rewrite is exactly what I’m looking for :slight_smile: