How to make drupal 7 homepage be a static html

Public

Warning message

We recommend you to assign at least one category to this snippet so you could easily navigate it in the future. Edit your snippet here.

</> CopyGet raw version
php
  1. // this should be done in index.php
  2.  
  3. define('DRUPAL_ROOT', getcwd());
  4.  
  5. require_once DRUPAL_ROOT . '/includes/bootstrap.inc';
  6. drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
  7.  
  8. if (drupal_is_front_page()) {
  9. require_once "my_landing_page.html";
  10. }
  11. else {
  12. menu_execute_active_handler();
  13. }