Jump to content

PHP Username Domains


awbarton222

Recommended Posts

Hi everyone!

 

Im not very good with php yet so I need some help. I have a php based site similar to etsy.com. I want to make the users "shop" end in their username

 

for example

www.kaloves.com/username

 

currently I have it set

http://www.kaloves.com/seller_shop.php?uid=30

 

I have read a little bit that I have to edit the .htaccess file. I was hoping someone could explain to me exatlcy what I need to do as if you were speaking to a 5 year old child. I want to make sure it doesn't affect any of the other related links off of the shop page.

 

Thanks for your help!

 

Link to comment
https://forums.phpfreaks.com/topic/197648-php-username-domains/
Share on other sites

I believe you would have to create a new directory for each user using mkdir(), see http://php.net/manual/en/function.mkdir.php.

 

Inside each users directory you can create a file that redirects to that users page, http://www.kaloves.com/seller_shop.php?uid=30.

 

Hope this helps

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.