Hello,

I am new to drupal and I'm learning the ropes. I have a naive question. Let's say a user visits a path that DOESN'T exist (ie: http://www.mysite.com/gallery/image-galleries/britney_spears), is there a pathauto way to say "this user is trying to visit a path that doesn't exist, let me redirect him to a page where he can add an image gallery".

Is this possible within pathauto?

Comments

drewish’s picture

pathauto doesn't really do that... sounds like you're looking for some kind of a 404 handler.

greggles’s picture

Title: Naive pathauto question » handling 404 with Pathauto (not possible)
Status: Active » Fixed

That's not something Pathauto can do. I suggest you look at the custom error module - http://drupal.org/project/customerror for a way to achieve what you want.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

paulkent_uk’s picture

Version: 5.x-2.1 » 6.x-1.6
Status: Closed (fixed) » Active

I can't get 404 errors either when trying to visit a page that has NEVER existed. If a page HAS existed before, sometime in the past but now DELETED, then 404 errors DO show up. What appears to happen when you try to visit a non-existent page is Drupal attempts to build a page or just shows the root page of that particular section but with no 'Page not found' error - e.g. mydomain.com/real-page/page-never-existed. I have installed the Custom Error module and this does not solve the issue.

greggles’s picture

Status: Active » Closed (fixed)

@paulkent_biz - the problem you describe is unrelated to this issue. I guess creating a post in the help forum.