Do you need an .htaccess file to run a multisite

Events happening in the community are now at Drupal community events on www.drupal.org.
Posted by JameyLaroche on July 29, 2011 at 2:09pm

This is my first ever attempt at making a multisite, and before I started, the documentation made it seem pretty easy to do (I'm using Drupal 7).
We already have a working Drupal site, but we now want to make it a multisite. I've gone through the instructions a few times and it will not work for me.
(I am trying to make a multisite on the same domain: www.example.com/site1, www.example.com/site2...)

During the initial install, we had to remove the .htaccess file to allow Drupal to work on our server. Not sure why (this was before I started this position),
but the team believes the REWRITES of .htaccess were stopping us from using Drupal in the first place (I'm also an .htaccess noob, so I don't know much about REWRITES).

So... all this explanation and filler to ask the question... Does Drupal 7 require an .htaccess file to run a successful multisite?

Categories: , ,

Comments

How odd that the .htaccess

Posted by Lakeside on July 29, 2011 at 2:20pm

How odd that the .htaccess was removed because Drupal generates its own .htaccess.

You might check out this article: http://www.blogtooltips.com/drupal-7-multisite-greengeeks

Thanks. I will check out the

Posted by JameyLaroche on July 29, 2011 at 2:25pm

Thanks. I will check out the link.

It depends on how much

Posted by davidhernandez on July 29, 2011 at 2:46pm

It depends on how much control you have of your server. If you have full access to it, and its Apache config files, you don't need the .htaccess files. You can do everything form the server level configs.

True--as long as what is

Posted by Lakeside on July 29, 2011 at 2:59pm

True--as long as what is reflected in the config file is what is in the .htaccess file.

BTW the latest update for D7 has modified the .htaccess.

So I checked out the link

Posted by JameyLaroche on July 29, 2011 at 3:06pm

So I checked out the link above (Thanks Lakeside) but the step-by-step guide is focused on a multi-domain setup, so he is changing DNS settings and whatnots.
Since the .htaccess files doesn't seem to matter (since drupal creates its own), does anyone have a good step-by-step for a multisite install that is all on the same domain?

Not clear by what you mean by

Posted by Lakeside on July 29, 2011 at 3:17pm

Not clear by what you mean by "a multisite...on the same domain."

A multisite is always has a single primary domain. The files look like: primary-site/sites/domain-1.com, primary-site/sites/domain-2.com.

You can have multiple

Posted by davidhernandez on July 29, 2011 at 3:33pm

You can have multiple domains, subdomains, and sub-directories. www.example.com, sub.example.com, www.example.com/sub2, www.foo.com. All can be in one install.

I may need to read a bit more

Posted by JameyLaroche on July 29, 2011 at 6:01pm

I may need to read a bit more on multisites before I move forward. Because I am even more confused then before :)

What I meant by "a multisite...on the same domain." is that I wanted all of my sites to be different sub-directories of one single domain (so example.com/site1, example.com/site2) instead of each site having it's own domain (site1.com, site2.com).

Yes, you can do that.

Posted by davidhernandez on July 29, 2011 at 6:47pm

Yes, you can do that.

edit:I'm trying to find a decent D7 tutorial for doing sub-directory multisite, but there aren't a lot. If you look at the example.sites.php file and default.settings.php file you'll see some pointers there.

Cool. I will take a look!

Posted by JameyLaroche on July 29, 2011 at 7:04pm

Cool. I will take a look!

edit: if you do happen to stumble on a tutorial for sub-directories multisite, I will gladly take it.
If not, I will make sure to make one once I figure it out :)

So.... if the tutorial says

Posted by JameyLaroche on July 29, 2011 at 6:15pm

So.... if the tutorial says the following:

"Configure SECONDSITE.com to point to the FIRSTSITE.com servers."

How would I do this if my multisite was all using the same domain, and each site was a sub-directory of the same domain?

Multisite

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

AltStyle によって変換されたページ (->オリジナル) /