In Drupal 6, the default <front> page has the path /node which will list out the latest nodes. Although we could point the <front> page to another path, the /node page is still accessible.
Create a custom module and add the following piece of code would help redirecting /node page back to the <front> page.
/** * Implementation of hook_menu_alter(). */ function YOUR_MODULE_NAME_menu_alter(&$items) { $items['node']['page callback'] = '_internal_custom_function_name_here_redirect_to_frontpage'; } /** * Redirect back to the frontpage for specific pages. */ function _internal_custom_function_name_here_redirect_to_frontpage() { if($_GET['q'] == 'node') { $_REQUEST['destination'] = "<front>"; drupal_goto(); } }
I haven’t tried it in Drupal 7, please let me know if you have any idea.
Done =)
Reference: disable the default node page
Here’s a (currently D7 only) module to do this: http://drupal.org/project/node_page_disable
LikeLike
Thanks for your link. That would be much user friendly then writing a custom module. =D
LikeLike