So my particular error:
I wanted to make www.mydomain.com be treated the same as mydomain.com in drupal because it treats them as different sites. So I accomplished this with multiple sites folders for www.mydomain.com and mydomain.com, they just both have the same settings.php file.
This works great the problem now is that the module sees www.mydomain.com and mydomain.com as different sites and in firefox the module sometimes don't load properly because of this error:
Error: uncaught exception: Permission denied to call method XMLHttpRequest.open
Probably a www. is being added somewhere and the module treats it as another domain.
I think this is the error because when I go to the page with the error and manually prefix the url with www. the module works (well not totally but better)
What would I have to edit in the javascript to make both domains be treated the same?
Note: I also get the error described in another post when I use IE and have no idea what to do about it. That's the error about the page jumping up and no file listed after upload
Comments
Comment #1
robmilne commentedI don't think you should 'fix' the javascript. I'm no expert with .htaccess, but you should be redirecting one to the other. I would never have two settings.php files for a single site.
Comment #2
at3r commentedyou're probably right but the thing is i'm no .htaccess expert either, in fact i'm a noob at webmastering in general which is why i opted for this solution (that i understood) instead of that complex looking file somebody suggested.
The thing is, I got the solution from another poster in a topic and it does work really well. Until i learn the details of the .htaccess file I would prefer to keep my current implementation.
I'm sure that all i'd have to change in the javascript is prefixing whatever address the ajax script references with a www. if it is missing, the thing is I have no idea where to find that.
Also do you have any idea how to fix the other issue with internet explorer and the page jumping?
Comment #3
robmilne commentedI don't think the .htaccess fix is difficult. I'd just google it.
As for the other issues, I'll take a look later when I have some time.
Comment #4
kingandyFWIW, my understanding of Drupal's multi-site process is that if it doesn't find a folder for www.mysite.com, it will then look for one describing mysite.com - you should be able to get away with just a sites/mysite.com folder and a single settings.php file. We're running something like 30+ sites on our Drupal installation and that's how we handle it. I would gnaw my own arm off if we needed two different folders for each site.
Would I be right in guessing that you started with a sites/www.mysite.com folder, and then found requests for http://mysite.com were failing over to the sites/default folder?
Comment #5
nhck commentedAs per #803722: Cease support of Drupal 5? support for D4 and D5 has been closed. Sorry, please upgrade to Drupal 6. If you think this issue still applies with Version 6.x please reopen this issue with correct version tag.