Hi
First post, but a biggy! These forums have been of great help as I have worked my way through setting up a new site for my charity/company. Now has come the time to go live, but things haven't worked as expected. This may not be a Drupal problem? Here's the deal.
I installed Drupal 7 straight to the intended server, run by 1and1, to the directory /web/drupal.
Our existing site domain http://example.info is pointed at /web for its files.
Typing http://example.info/drupal offers up my new drupal site in all its glory. Everything works as i expect it to work on the drupal site.
To complicate matters, we point http://example.co.uk (with another ISP) at http://example.info. This works fine, apart from the favicon (another story) and typing http://example.co.uk/drupal also works fine.
So I thought, now I am ready to go live, I'll simply point http:/example.info at /web/drupal, and the rest should take care of itself. I did so, and waited for the changes to take effect.
I can get to the front page, but no custom background (maybe due to hard coded url), but clicking on any menu links gives me a 500 internal server error page. I have checked menu links and they are in the format /node/##. Most pages on my site use clean urls.
This happens whether I use http://example.info or http://example.co.uk.
I have thought about trying to point http://example.co.uk at http://example.info/web/drupal ?
I also tried removing /drupal from the ReWrite section of .htaccess, and setting the baseurl to http://example.info in settings.php, but this either made not difference or removed all css from front page, links still produced 500 error pages.
So what have I done wrong, is there anything I can do to fix, do I need to move my drupal folder up to root.
Any advice or pointers would be greatly appreciated.
Joe90
Comments
Hi there Have you set your
Hi there
Have you set your RewriteBase value in your .htaccess file?
if not then this should be uncommented from:
to
Thanks, it is already :) Had
Thanks, it is already :) Had to do this to get cleanurls working.
I tested forwarding a different domain to my drupal site, and that works fine (apart from the incorrect urls in the address bar, but I can live with that.
But I still don't understand why the site won't work correctly if I change the "web directory" by one level?
Just thought... If the domain
Just thought... If the domain is now pointing to /web/drupal presumably the RewriteBase value should actually just be:
Have you tried that since you repointed the domain to the subfolder /drupal ?
If this doesn't work also look to add the following line into your .htaccess file
From what I've read 1and1 can default to attempting to use PHP4 instead of PHP5. This line will force it to use PHP5
Yes, I follow your thinking,
Yes, I follow your thinking, and perhaps need to do things in reverse for the ReWrite module! I am first trying with commenting it out altogether, and then will have a go with just the "/".
I already have the php hack in place, because as you rightly say, 1and1 tries to use php4, and Drupal 7 wants php5. This fix works fine for me.
I'll report back later this morning.
Thanks for your help dw8rr3n
Great! RewriteBase / fixed
Great!
RewriteBase /
fixed it, I just had to edit a few links that were hard coded with the absolute url http://example.info/drupal/* to get everything working OK.
:D
Glad you got it working!
Glad you got it working!
Similar issue to above but different :)
My issue is that I have Drupal 7 working in the main url (example.com), but when trying to setup multisite in subfolders (example.com/site1), I get very strange errors.
For one (of 5 sites in subdirectories), I can access the install.php page, but after entering all of the information for the database, it loops back to the same page, never completing the install (though creating some of the tables in the db).
For the other 4 sites, I get a 500 error when navigating to them in a browser.
This is a Drupal 7 installation on IIS7 with MS SQL Server 2008, using virtual directories to point to the root folder. The .htaccess file has uncommented "RewriteBase /." The web.config file in the root has been updated to add the following:
And separate web.config files have been added to each subdirectory.
Also, sites.php has been amended with the required entries for each subfolder:
# $sites['example.com/site1'] = 'example.com.site1';
# $sites['example.com/site2'] = 'example.com.site2';
etc...
I haven't seen a lot of IIS / MS SQL Server / multisite in sub-folders posts yet, so if anyone has thoughts or answers, thanks in advance!