Why do i get a 403 error when viewing a Drupal custom menu item via clean url?

Posted by Chaulky on Stack Overflow See other posts from Stack Overflow or by Chaulky
Published on 2010-04-16T02:58:03Z Indexed on 2010/04/16 3:03 UTC
Read the original article Hit count: 187

Filed under:
|
|

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!

© Stack Overflow or respective owner

Related posts about drupal

Related posts about drupal-6