sunrunner20 Posted December 7, 2006 Posted December 7, 2006 I currently want to forward my root page to a subdomain of http://main.**** however, when I use a standard redirect directive it prevents my other subdomains from working. I'm wondering how I can get around this problem. I think this problem can be fixed by saying not to applying this to all sub folders, however I don't know how to do this. Quote
PeterPeter Posted December 7, 2006 Posted December 7, 2006 This might help. http://ask.metafilter.com/mefi/22852 If you could post an example of what you are trying to do exactly, the directory structure etc. That would make is a bit easier to help you as well. Quote
sunrunner20 Posted December 8, 2006 Author Posted December 8, 2006 The directory is as such . .. .htaccess {files for www.site.com} foo (folder for foo.site.com) When I use cpanel's redirect it causes the foo subdomain to become inaccisable. So, I need a way to redirect the main page to somewhere else without it afficting subdomains. Quote
TCH-Andy Posted December 8, 2006 Posted December 8, 2006 So that I have a correct understanding of what you require; You want links to youraccount.com to be all sent to main.youraccount.com and leave sub1.youraccount.com and sub2.youraccoun2.com functioning normally. Is that correct ? Quote
sunrunner20 Posted December 8, 2006 Author Posted December 8, 2006 Yes, and I think the way to do it is through the RedirectMatch directive but, I can't get the regex right. Quote
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.