seventheyejosh Posted October 20, 2010 Share Posted October 20, 2010 Quick question. If I have the following: site.com/forum/ & forum.web.com How can I, by using one or both of the .htaccess files for those roots, make it so when a user goes to site.com/forum/ it goes to forum.web.com, but the url stays the same? I know I can make it redirect to the subdomain, but I want the user to think they are still at the same url. I also want it to make all the requests look normal: site.com/forum/ucp.php?v=1&s=2 . Is there some kind of proxying or reverse proxying I can do? Thanks so much, Josh Quote Link to comment https://forums.phpfreaks.com/topic/216323-access-subdomain-from-url/ Share on other sites More sharing options...
trq Posted October 20, 2010 Share Posted October 20, 2010 Alias /forum /path/to/your/subdomain Quote Link to comment https://forums.phpfreaks.com/topic/216323-access-subdomain-from-url/#findComment-1124223 Share on other sites More sharing options...
seventheyejosh Posted October 20, 2010 Author Share Posted October 20, 2010 Well I threw this up there, and it gave me a 500 error: <IfModule mod_alias.c> Alias /forum /home/lifecode/public_html/rmbforum </IfModule> Googling reveals that Alias can't be used in .htaccess, only in a <VirtualHost> in httpd.conf, and since my friend's site is on hostgator shared hosting, I'm not able to use that. Is there a way to do something similar through .htaccess? Or just a different method altogether? Thanks! - Josh Quote Link to comment https://forums.phpfreaks.com/topic/216323-access-subdomain-from-url/#findComment-1124401 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.