RewriteEngine on
# automatically load sub-directory: 2drills-d8 <- 2drill.local
#site
#RewriteCond %{HTTP_HOST} ^2drill\.local$ [NC]
RewriteCond %{HTTP_HOST} ^2drill\.local$ [NC]
RewriteRule ^$ 2drills-d8/index.php [L]
#files
RewriteCond %{HTTP_HOST} ^2drill\.local$ [NC]
RewriteCond %{DOCUMENT_ROOT}/2drills-d8%{REQUEST_URI} -f
RewriteRule .* 2drills-d8/$0 [L]
#url's
RewriteCond %{HTTP_HOST} ^2drill\.local$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ 2drills-d8/index.php?q=$1 [L,QSA]
TRUNCATE `cache_bootstrap`; TRUNCATE `cache_config`; TRUNCATE `cache_container`; TRUNCATE `cache_data`; TRUNCATE `cache_default`; TRUNCATE `cache_discovery`; TRUNCATE `cache_dynamic_page_cache`; TRUNCATE `cache_entity`; TRUNCATE `cache_menu`; TRUNCATE `cache_page`; TRUNCATE `cache_render`;

if (
isset($GLOBALS['request']) &&
preg_match('/\/2drills-d8/', $GLOBALS['request']->server->get('SCRIPT_NAME') )
) {
$GLOBALS['request']->server->set('SCRIPT_NAME', preg_replace('/\/2drills-d8/','',$GLOBALS['request']->server->get('SCRIPT_NAME')) );
}
Drupalが非常に柔軟性、拡張性のあるフレームワークである。それこっそ、サイト構築時にいろいろな構造を注意しないとパフォーマンス問題になる。
コンテンツがサイト構成の一番基本な要素なので、コンテンツ分析、分類、構成するのはサイト構築の第一歩である
以下はよくある問題と解決案
DrupalがViews, Panels, and Context modulesなどのモジュールを利用して、コンテンツを違う場所、フォーマットで各種表示には強力なツールである。
以下はよくある問題点と解決案
サイトの目的、必要な機能を計画し、必要最低限のモジュールの採用と一部分のコーティングでサイトのパフォーマンスを向上する
以下はよくある問題と解決案