ram123 Posted November 9, 2009 Share Posted November 9, 2009 How can we show in url the username as subdomain. if ramesh is logged in website, how the url can convert from http://domain.com?id=ramesh to http://www.ramesh.domain.com. Any body can help me Quote Link to comment https://forums.phpfreaks.com/topic/180828-htaccess-file/ Share on other sites More sharing options...
cags Posted November 9, 2009 Share Posted November 9, 2009 Having http://domain.com/ramesh show http://domain.com?id=ramesh is easy enough, but I'm not sure you could use a .htaccess exclusively for a sub-domain. Doing the actual redirect of the URL is simple enough, but I believe you would need the sub-domain to point to your server in the DNS. Which would require further setting up. Quote Link to comment https://forums.phpfreaks.com/topic/180828-htaccess-file/#findComment-954083 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.