Forums / General / ? in URL Aliases
Anders Berre
Thursday 06 August 2009 3:47:54 am
Hi,
I guess this is a problem/situation many of you have seen before.
When a old website is switching to eZ and the old links are like this:
www.domain.com/?articleID=10
How is it possible to create a URL Alias that takes ?articleID=10 and redirects to correct object.
I tried to use the "URL Translator", but it removed the "?". I also tried different options on the"URL wildcard", but no luck.
Have any of you handled this problem, and have a nice soloution for it?
I was thinking of making a code that just check if the ?article was set and then redirect to www.domain.com/article=10, and create a url alias. But I wanted to check if anyone have done something simular?
Sincerely, Anders Sandvik Berre http://www.netmaking.no/
Heath
Thursday 06 August 2009 3:50:42 am
I might suggest custom mod_rewrite rules in your httpd vhost configuration file directly as a simple solution.
http://ezpedia.org/en/ez/mod_rewritehttp://ezpedia.org/en/ez/rewrite
Cheers,Heath
7x | https://se7enx.com/ Brookins Consulting | https://brookinsconsulting.com/ Certified | http://web.archive.org/web/201012...th.ez.no/certification/verify/380350 Solutions | https://projects.exponential.earth/users/community/brookins-consulting eZpedia community documentation project | http://ezpedia.se7enx.com
Thursday 06 August 2009 3:59:10 am
Ah, that might be a good soloution.We are allready running custom rewriterules, but I am not that good with creating new ones.
Suggestion how this rewrite rule would look?
Łukasz Serwatka
Friday 07 August 2009 2:32:10 am
Take a look on this forum topic:http://ez.no/developer/forum/install_configuration/possible_to_remove_path_to_ez_index_php_under_fastcgi
Personal website -> http://serwatka.net Blog (about eZ Publish) -> http://serwatka.net/blog