? in URL Aliases

Author Message

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_rewrite
http://ezpedia.org/en/ez/rewrite

Cheers,
Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

Anders Berre

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?

Sincerely,

Anders Sandvik Berre
http://www.netmaking.no/

Ɓ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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 30 2025 21:41:25
Script start
Timing: Jan 30 2025 21:41:25
Module start 'layout'
Timing: Jan 30 2025 21:41:25
Module start 'content'
Timing: Jan 30 2025 21:41:25
Module end 'content'
Timing: Jan 30 2025 21:41:25
Script end

Main resources:

Total runtime0.0207 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 588.0000151.1953
Module start 'layout' 0.00510.0033 739.1953220.6406
Module start 'content' 0.00840.0109 959.83591,001.7422
Module end 'content' 0.01930.0014 1,961.578133.9922
Script end 0.0207  1,995.5703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002512.0945140.0002
Check MTime0.00115.2057140.0001
Mysql Total
Database connection0.00094.214710.0009
Mysqli_queries0.002210.444730.0007
Looping result0.00000.037910.0000
Template Total0.00105.010.0010
Template load0.00083.979010.0008
Template processing0.00021.008310.0002
Override
Cache load0.00062.753410.0006
General
dbfile0.00031.273880.0000
String conversion0.00000.039140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs