Jump to content

User subdomain (using htaccess?)


Michan

Recommended Posts

Hi,

 

I've been trying to find a good way to do this for a while. I don't have a lot of experience with .htaccess, but I would like users of a small community to have their own "subdomain."

 

For example, to view a user's profile, you'd go to http://user123.thedomain.com instead of http://www.thedomain.com/user.php?user=user123

 

But I'd like this not to interfere with other urls, such as domain.com/news forwarding to domain.com/news.php

 

How would I get about doing this?

 

Thanks in advance,

- Mi

Link to comment
https://forums.phpfreaks.com/topic/91219-user-subdomain-using-htaccess/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.