URL redirects from old site pages to eZ Publish pages?

Author Message

Ben Overmyer

Monday 25 August 2008 12:56:24 pm

I'm involved in a project to completely revamp a website from static HTML to eZ Publish. We have a lot of disparate web pages and applications whose URLs are referenced by a LOT of documentation, as well as a few web apps with hard-coded URLs.

Is it possible to set up redirects from old URLs to eZP pages? For example, I want to redirect from something like:

www.mysite.com/folder1/page13.htm

to:

www.mysite.com/content/ezstuff/page13

Any advice is appreciated.

Gaetano Giunta

Tuesday 26 August 2008 1:04:12 pm

Sure enough.
eZ Publish supports a full fledged url-alias mechanism. Custom aliases can be set up for every content node or for redirecting to any module/view within the system itself.
Wildcard aliases are supported, as well as the possibility to have aliases do an "external" redirect (ie. an http 301, where the user sees the final url in his browser) or an internal one.

All of the aliases are set up from within the admin interface.

Just make sure you are using version 3.10.1 or 4.0.1 and not 4.0.0 or 3.10.0, ad there are known bugs with url aliases in those versions

Principal Consultant International Business
Member of the Community Project Board

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 18 2025 19:25:18
Script start
Timing: Jan 18 2025 19:25:18
Module start 'layout'
Timing: Jan 18 2025 19:25:18
Module start 'content'
Timing: Jan 18 2025 19:25:19
Module end 'content'
Timing: Jan 18 2025 19:25:19
Script end

Main resources:

Total runtime0.8091 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 589.2734152.6406
Module start 'layout' 0.00510.0036 741.914139.4766
Module start 'content' 0.00870.7988 781.3906522.1719
Module end 'content' 0.80750.0015 1,303.56258.1250
Script end 0.8090  1,311.6875 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3907160.0002
Check MTime0.00130.1655160.0001
Mysql Total
Database connection0.00060.077710.0006
Mysqli_queries0.763494.3527540.0141
Looping result0.00060.0685520.0000
Template Total0.770795.320.3854
Template load0.00280.344120.0014
Template processing0.767994.918620.3840
Template load and register function0.00010.017210.0001
states
state_id_array0.00150.184410.0015
state_identifier_array0.00260.327420.0013
Override
Cache load0.00180.2232160.0001
Sytem overhead
Fetch class attribute can translate value0.00060.072420.0003
Fetch class attribute name0.00180.218830.0006
XML
Image XML parsing0.00060.068320.0003
class_abstraction
Instantiating content class attribute0.00000.001030.0000
General
dbfile0.00080.0942160.0000
String conversion0.00000.001040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 8
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs