Share » Forums » General » Wildcard Alias Not Working

Wildcard Alias Not Working

Wildcard Alias Not Working

Tuesday 22 July 2008 4:47:06 pm - 3 replies

Modified on Tuesday 22 July 2008 4:50:43 pm by Russell Michell

Author Message

Russell Michell

Tuesday 22 July 2008 6:46:50 pm

Still not working however...

Using "/folder_name/*" doesn't work. But using "folder_name/*" does! This conflicts with the tooltip (HTML title="" attribute) in the eZ admin interface which uses the "/" prefix.

Something else I forgot to mention: The URI pattern I'm putting into the first field is a virtual path to content that already exists in the eZ hierarchy. I'm actually trying to redirect from an object of a Custom Class which supplies data to an eZ RSS feed, to a regular Folder content object.

So at the moment I can go:"folder_name/blah" (Exists in eZ but does nothing). But "folder_name/bla" (Doesn't exist in eZ but does tries redirect but gives a modeul not found error) redirecting to: "folder_name_2/bla".

It seems to be something either to do with existing (generated) URLs taking precedence or not allowing existing URLs to be redirected in this manner (using wildcards)...

Will investigate further...

Russell Michell, Wellington, New Zealand.
We're building! http://www.theruss.com/blog/
I'm on Twitter: http://twitter.com/therussdotcom

Believe nothing, consider everything.

Kristof Coomans

Tuesday 22 July 2008 10:58:39 pm

Hi Russ

The tooltip bug has been reported some days ago, see http://issues.ez.no/13364. Cheers!

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Russell Michell

Thursday 24 July 2008 3:28:10 pm

Hey Kristof and thanks for the heads-up re: the bug.

I have sorted my issue. As far as I can tell, Wildcard Aliasing will not work when the Virtual URL you want to redirect <i>from</i> already exists as some content-class or other.

What I did to solve this, was:

* Configured my RSS feed to prefix all RSS <link> element URIs with a unique string (I used "/export")
* Created a Wildcard Alias that redirected everything from "/export/blah-1/*" to "/my-siteaccess/blah-1/{1}"

As an aside, I was trying with URL Aliases for individual content objects but found when I moved them into another location, their URL Aliases were not retained. Is this a bug?

Cheers :-)

Russell Michell, Wellington, New Zealand.
We're building! http://www.theruss.com/blog/
I'm on Twitter: http://twitter.com/therussdotcom

Believe nothing, consider everything.

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu