I’m here with a new question about drupal, I was wondering if it’s possible to make nodes without path alias unaccesible, by this I mean that if you go to node/$ nid/ not be able to see it’s content, but if that node has an path alias like /myarticle/my-article-name/ and you go to that url you are able to see it’s content.
It’s this possible to achieve with php code? Thats because I want to implement it on a custom module.
By researching, I found that I can do this in my hook_menu() with:
$ items[‘node/%node’][‘page callback’] = ‘drupal_not_found’;
Or with this:
$ items[‘node/%node’][‘access’] = FALSE;
But the problem with it is that I can’t access with node/$ nid/ and without /myarticle/my-article-name/, it raises permission denied