HomeKomputerWebsite/CMSContoh .htaccess Drupal

Contoh .htaccess Drupal

Website/CMS 0 0 likes 213 views share

<FilesMatch "(.(engine|inc|info|install|module|profile|po|sh|.*sql|theme|tpl(.php)?|xtmpl))$">
  Order allow,deny
</FilesMatch>
<FilesMatch "(code-style.pl|Entries.*|Repository|Root|Tag|Template)$">
  Order allow,deny
</FilesMatch>
ErrorDocument 404 /index.php
##direktori index sebetulnya sudah default
DirectoryIndex index.php
<IfModule mod_expires.c>
  ExpiresActive On
  ExpiresDefault A1209600
  ExpiresByType text/html A1
</IfModule>
<IfModule mod_rewrite.c>
  RewriteEngine on
##drupal terinstal di direktori mana relatif
##terhadap root document. jika ada di root document
##tulis RewriteBase seperti di bawah ini.
  RewriteBase /
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php?q-$1 [L,QSA]
</IfModule>

© http://carauntuk.com/contoh-htaccess-drupal

Sponsor 2

Leave a Reply