almightyegg Posted January 31, 2007 Share Posted January 31, 2007 I don't know if i would need PHP for this so I posted it here ??? On my site, members sign up and I would like them to have a personal link so if a user nsame was Jimmy it would be: www.Jimmy.mysite.com or similar... How would I do this?? Quote Link to comment https://forums.phpfreaks.com/topic/36506-wwwmysitecom-wwwusernamemysitecom/ Share on other sites More sharing options...
rantsh Posted January 31, 2007 Share Posted January 31, 2007 Are you planning to give away subdomains? btw, I don't think you can access subdomains with www. in front of them Quote Link to comment https://forums.phpfreaks.com/topic/36506-wwwmysitecom-wwwusernamemysitecom/#findComment-173783 Share on other sites More sharing options...
almightyegg Posted January 31, 2007 Author Share Posted January 31, 2007 I could give away yes, but I don't know how to auto create one once an account is created :-X It doesn't matter if it is with www. or not I believe, I just tested that Quote Link to comment https://forums.phpfreaks.com/topic/36506-wwwmysitecom-wwwusernamemysitecom/#findComment-173790 Share on other sites More sharing options...
marcus Posted January 31, 2007 Share Posted January 31, 2007 Yes you can. Check out mod_rewrite. http://www.sitepoint.com/article/guide-url-rewriting Quote Link to comment https://forums.phpfreaks.com/topic/36506-wwwmysitecom-wwwusernamemysitecom/#findComment-173793 Share on other sites More sharing options...
almightyegg Posted February 2, 2007 Author Share Posted February 2, 2007 I can't find the right stuff. Then again I don't know what to search for... ??? Quote Link to comment https://forums.phpfreaks.com/topic/36506-wwwmysitecom-wwwusernamemysitecom/#findComment-175678 Share on other sites More sharing options...
Xeoncross Posted February 2, 2007 Share Posted February 2, 2007 You need a catch-all subdomain setup (like *.mysite.com just like a catch all email *@mysite.com) and then the .htaccess is really easy to setup if you just google it. Quote Link to comment https://forums.phpfreaks.com/topic/36506-wwwmysitecom-wwwusernamemysitecom/#findComment-175689 Share on other sites More sharing options...
mb81 Posted February 2, 2007 Share Posted February 2, 2007 I agree that a mod_rewrite would be easier than creating subdomains. BTW, you can set up subdomains after www., depending on how your CNAME settings are set on your server. Most sites are technically hosted at mysite.com, but their cname just accepts www.mysite.com as mysite.com. Quote Link to comment https://forums.phpfreaks.com/topic/36506-wwwmysitecom-wwwusernamemysitecom/#findComment-175696 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.