I'm attempting to create a couple of redirects and keep getting this error -

You cannot create a redirect from a currently valid path.
This is NOT a valid path, thus the reason for the redirect.

I've got a search Engine's throwing 404's on a few invalid path's I have and would like to resolve this.

Comments

Dave Reid’s picture

Status: Active » Postponed (maintainer needs more info)

What paths are you trying to create redirects for?

marcus0263’s picture

I was "adding", like for example -

www.mysite.com/forum/blah

to

www.mysite.com/forum/scuttlebutt/blah

I cleared the cache, disabled/re-enabled then cleared the cache again to no avail.

This didn't start until I upgraded to beta-5

Thanks

marcus0263’s picture

Dave Reid’s picture

Is forum/arts-and-entertainment/london-after-midnight a currently valid URL alias on your site? If so, then it's technically a valid path since it returns content and not a 404 page. If you want to redirect, you need to delete the URL alias first.

marcus0263’s picture

No it's not a current alias, it was at one time 'bout a year ago hence the reason why it's in google cache and the bot's are trying to hit it.

marcus0263’s picture

I just upgraded to beta6 and still getting this error -

The source path forum/ministry-truth/myth-passport-security is a currently valid path. You cannot override existing paths. You can however, create URL aliases for them.

The url's I'm trying to create a redirect for are not valid but "where" at one time, thus the reason for creating a redirect.

http://www.rejecttheherd.net/forum/ministry-truth/myth-passport-security

I is *****NOT***** a valid path and I do not have an alias to this path.

The correct path is -

http://www.rejecttheherd.net/forum/big-brother/ministry-truth/myth-passp...

marcus0263’s picture

Applied the patch kmonty created, resolved my issue

http://drupal.org/node/648500#comment-2333422

Dave Reid’s picture

Status: Postponed (maintainer needs more info) » Closed (duplicate)

@marcus0263 The problem is that the path http://www.rejecttheherd.net/forum/big-brother/ministry-truth/myth-passp... is valid because it does not 404 for me. Looks like it still is a path alias which points to a valid path, which is what is not allowed. Therefore, this is a duplicate of #615008: "Forced" path redirect - override the existing path or alias.

Dave Reid’s picture

Nevermind, I was wrong about the path. That's odd. Either way, this is a duplicate of one of the overriding issues.

JordanMagnuson’s picture

I am also getting an INCORRECT existing path notice form path redirect:

The source path pages/marisa-lerin/readyokay is a currently valid path. You cannot override existing paths. You can however, create URL aliases for them.

Even though pages/marisa-lerin/readyokay IS NOT a currently valid path, and is throwing a 404 when visited.

JordanMagnuson’s picture

Status: Closed (duplicate) » Active

I'm marking this as active, as I cannot find another issue regarding INCORRECT existing path notices. Everything else seems to be about forcing redirects on paths that DO actually already exist.

JordanMagnuson’s picture

Title: Cannot Create redirect » Cannot create redirect--incorrect "existing path" notice

Sorry for the multiple posts... just clarifying the title.

JordanMagnuson’s picture

Status: Active » Closed (duplicate)

Sincere apologies. This is in fact a duplicate of: http://drupal.org/node/648500