Posts: 18
Name: Jon
Location: Southern California
|
Hey there,
I have 1 "main domain" and several subdomains (subfolders) hosted together with GoDaddy. The main domain recently underwent some changes and I used 301 redirects...
i.e.
The above code worked/works fine - this is not my issue. I noticed that all my subfolders' "links" and "sitemap" files were redirecting to the main domain's files of the same name...undesirable effect. Remember, this is the main domain's .htaccess file.
I contacted GoDaddy who suggested I use the full domain path (which I had originally coded) and it did not work - the files returned a 404 Not Found like follows. I tried again today with the same results.
i.e.
The technical support rep. also suggested an "exception" code which can be placed into the main domain .htaccess which directs "it" to only apply these changes to a specific domain...voila...except they wouldn't or couldn't tell me what it was and suggested I begin Googling for my answer. I've tried researching it, but it's difficult to find an answer when searching for ".htaccess exceptions." One can imagine all of the results.
GoDaddy had told me that all of the sub-folders domain would be "exclusive" from one another which is one reason I decided to structure my sites this way, at their suggestion.
I should of left them the way they were and paid for seperate hosting on 5 sites, I know. I have since removed the redirects for conflicting files, however I am leary now that "other" .htaccess commands from the main domain will affect the other 4 sub-folders (domains)...any thoughts?
Structure clarification
main-domain (root)
/subfolder ( www.sub-domain1.com)
/subfolder ( www.sub-domain2.com)
/subfolder ( www.sub-domain3.com)
etc.
Last edited by LoganKonlan; 03-17-2011 at 03:09 PM..
Reason: terminology clarification
|