.htaccess settings for Drupal 8 multi-site on a shared host

Ok there’s a lot of content out there for this kind of thing:


but i’m having no luck at all.

In my public_html, i’ve got a Drupal directory, so it’s: /public_html/drupal8

Here’s what i’ve got so far in my .htaccess file:

Options -Indexes
RewriteEngine on
Options +FollowSymLinks

RewriteCond %{HTTP_HOST} ^drupal.mysite.com$ [NC]
RewriteRule ^$ drupal8/index.php [L]

# Clean the /drupal8 from the URL
RewriteCond %{DOCUMENT_ROOT}/drupal8%{REQUEST_URI} -f
RewriteRule .* drupal8/$0 [L]
RewriteCond %{HTTP_HOST} ^drupal.mysite.com$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* drupal8/index.php?q=$0 [QSA]

What i’m TRYING to do is tell the server:

For any requests for specifically drupal.mysite.com, serve /public_html/drupal8, then, remove the /drupal8 from the URL.

If anyone could point me in the right direction, man oh man i’d be much obliged!

Drupal version: 

Source: https://www.drupal.org/taxonomy/term/34/feed

Leave a Reply