dezkit Posted January 7, 2009 Share Posted January 7, 2009 I have 2 domains, and i want a domain to redirect to the other domain without changing the url on top. Domain1.com/domain2/something/index.php Domain2.com/something/index.php Is this possible? PHP? DNS? Quote Link to comment Share on other sites More sharing options...
corbin Posted January 7, 2009 Share Posted January 7, 2009 mod proxy.... Or just an Alias line in httpd.conf if they're on the same computer (and running Apache ;p). Quote Link to comment Share on other sites More sharing options...
dezkit Posted January 7, 2009 Author Share Posted January 7, 2009 They're on two different machines, can you tell me the code for mod_proxy, google'ing that makes me confused. Thanks Quote Link to comment Share on other sites More sharing options...
corbin Posted January 8, 2009 Share Posted January 8, 2009 Just of curiosity, you own domain2, right? Would be kind of lame to do that if not. Anyway: ProxyPass /blah/ http://somewhere.com/ Should work, but... I haven't used mod proxy in 6 months, so I might have it wrong ;p. Quote Link to comment Share on other sites More sharing options...
dezkit Posted January 27, 2009 Author Share Posted January 27, 2009 Thanks for the reply, but what is that? .htaccess? And where should I put that code? On domain 1 or 2? Thanks Quote Link to comment Share on other sites More sharing options...
corbin Posted January 28, 2009 Share Posted January 28, 2009 You could put it anywhere. Depends on what you want it to do ;p. Quote Link to comment Share on other sites More sharing options...
dezkit Posted January 28, 2009 Author Share Posted January 28, 2009 Meh, I'll just leave this aside when I will get better at web applications, thanks though 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.