Why do i get a 403 error when viewing a Drupal custom menu item via clean url?
- by Chaulky
Hi all,
I've created a custom menu item in my Drupal 6 website by defining it in a custom module. This is an extremely simple MENU_NORMAL_ITEM menu item. The menu item is defined as
/**
* Implementation of hook_menu().
*/
function menu_test_menu() {
$items['menu_test'] = array(
'title' => 'Menu Test',
'page callback' => 'menu_test_hello',
'access callback' => TRUE,
'type' => MENU_NORMAL_ITEM,
);
return $items;
}
Since I have clean URLs on, the path should be www.example.com/menu_test. That URL gives me a 403 error. But, if I enter www.example.com/?q=menu_test, everything works fine. Why am I getting the 403 error? The menu item is useless because it's always trying to go to the clean URL path, which should work but doesn't for some reason.
Thanks for the help!