luke777 Posted April 17, 2009 Share Posted April 17, 2009 hey i really hope someone can help me. I'm trying to make a page like http://www.mysite.com/profile.php?username=user1 be displayed if the user types in user1.mysite.com so they have like their own page. I don't want a 301 redirect, im thinking it must have something to do with htaaccess but i've been reading around trying things and just getting confused. I wondered whether someone here would have a straight answer :-\ Appreciate any help very much! Thanks Luke. Quote Link to comment Share on other sites More sharing options...
gffg4574fghsDSGDGKJYM Posted April 17, 2009 Share Posted April 17, 2009 I've never do that but google seem to know how : http://www.google.com/search?q=dynamic+subdomain+in+php Quote Link to comment Share on other sites More sharing options...
xtopolis Posted April 17, 2009 Share Posted April 17, 2009 Are you trying to fake a subdomain? Sounds like you want to mod_rewrite instead. Try these: http://www.htmlist.com/how-to/a-simplemod_rewrite-tutorial/ http://corz.org/serv/tricks/htaccess2.php Quote Link to comment Share on other sites More sharing options...
keeB Posted April 17, 2009 Share Posted April 17, 2009 Check VirtualHosts. That's what you want to do. Something like this article may help: http://www.webmasterworld.com/apache/3631903.htm Quote Link to comment 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.