jump to navigation

Contoh .htaccess Drupal
June 13, 2013

Posted by cu.admin in : Website/CMS , trackback

<FilesMatch "(.(engine|inc|info|install|module|profile|po|sh|.*sql|theme|tpl(.php)?|xtmpl))$">
  Order allow,deny
<FilesMatch "(code-style.pl|Entries.*|Repository|Root|Tag|Template)$">
  Order allow,deny
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 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]

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

Sponsor 2



no comments yet - be the first?