eZ Community » Forums » General » URL translator/alias - redirect issue
expandshrink

URL translator/alias - redirect issue

URL translator/alias - redirect issue

Sunday 15 January 2012 8:34:56 pm - 3 replies

Hi guys,

This is probably something I could find by searching the forum, but I was not able, probably because I don´t know what to search for.

One of the things we have to handle when building sites for our clients is proper redirecting of old URLs. This is mostly something we try to automate, but we also need the opportunity to manually say that a certain url has a new location.

I've looked into URL translator and URL wildcards, and it looks like they should cover our needs, but when trying to translate urls like "?page=about&section=1" to '/about' I can't make it work.

What am I doing wrong? Ini settings?

Anyone?

 

Kristian

Sunday 15 January 2012 8:56:05 pm

Hello Kristian,

Save yourself even more time. Stop trying to use eZ for this use case requirement happy.gif Emoticon

Normally, the best answer here is to use Apache virtual host configuration rules for the mod_rewrite module to provide for your redirection needs as the url subsystems (you mention) in eZ Publish are not as fully featured as most users desire or expect. As a result you could waste a lot of time trying to use them when the best answer is to solve this problem within the context of the web server as this is by design the best way to solve these kinds of needs properly. 

 

Also mod_rewrite rules are a lot faster than handeling this within eZ.

 

I hope this helps ...

 

Cheers,

Heath

Sunday 15 January 2012 10:01:50 pm

Hello Kristian,

Save yourself even more time. Stop trying to use eZ for this use case requirement happy.gif Emoticon

Normally, the best answer here is to use Apache virtual host configuration rules for the mod_rewrite module to provide for your redirection needs as the url subsystems (you mention) in eZ Publish are not as fully featured as most users desire or expect. As a result you could waste a lot of time trying to use them when the best answer is to solve this problem within the context of the web server as this is by design the best way to solve these kinds of needs properly. 

 

Also mod_rewrite rules are a lot faster than handeling this within eZ.

 

I hope this helps ...

 

Cheers,

Heath

I agree with you on a general basis, and thats how we wish to handle these things, but it is kinda hard to make a general rule for very specific cases, and sometimes these things come up when optimizing a site for SEO, so it would be nice to let a customer do this kind of redirect without having to pay for one of our consultants to do the mapping in the Apache config.

Monday 16 January 2012 1:16:09 am

Hello Kristian,

 

I think I understand your desire and goals quite clearly.

 

My only cause for concern is that for a very very long time eZ has resisted the feature your seeking.

 

If you do search for similar threads you would prolly find hundreds of different variations (re: frequently asked for feature),

http://share.ez.no/content/search?SearchText=url+translator+url+parameters

 

One user thought he found a solution but it seems the results were ultimately not consistent or reliable though it did require kernel hacking eZ Publish 3.x PHP Classes,

http://share.ez.no/forums/setup-design/url-translation-to-extension-url-w-user-parameters/(language)/eng-GB

 

We strongly recommend against kernel hacking the default class and instead creating a kernel class override extension which provides the modified class you wish to use in a clean and much more maintainable way.

Though in this example I don't think he was close enough to the real solution so it is prolly not worth mentioning.

 

If you find a solution worth sharing, please, consider doing so with the rest of the community. Thank you.

 

I hope this helps ...

 

Cheers,

Heath

Modified on Monday 16 January 2012 1:26:31 am by // Heath

expandshrink

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

36 542 Users on board!

Forums menu

Proudly Developed with from