URL rewrite for module [solved]

Author Message

Hugh Tebby

Friday 09 October 2009 9:06:41 am

Hi,

I've run into a probleme with Ez Publish URL rewriting.

I have a module that basically generated a .xml file. I can access the xml file through the url: http://mysite.com/mymodule/myscript

What I want to do is be able to access the xml file using the following url: http://mysite.com/myscript.xml

So basically it's a url rewrite, but I can't get it to work using apache url rewrites.

How would this rewrite have to be done ?

Thanks.
Hugh

Peter Keung

Friday 09 October 2009 9:22:14 am

Have you tried Setup > URL translator in the Administration Interface?

http://www.mugo.ca
Mugo Web, eZ Partner in Vancouver, Canada

Hugh Tebby

Monday 12 October 2009 12:23:10 am

Ok thanks the url translator works fine !

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

Main resources:

Total runtime0.8721 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 587.9141152.6250
Module start 'layout' 0.00650.0032 740.539139.4453
Module start 'content' 0.00960.8612 779.9844532.2188
Module end 'content' 0.87090.0012 1,312.20318.1641
Script end 0.8720  1,320.3672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.4174160.0002
Check MTime0.00130.1492160.0001
Mysql Total
Database connection0.00110.124110.0011
Mysqli_queries0.821394.1819570.0144
Looping result0.00050.0630550.0000
Template Total0.836395.920.4182
Template load0.00200.232420.0010
Template processing0.834395.666220.4171
Template load and register function0.00030.032010.0003
states
state_id_array0.00190.222710.0019
state_identifier_array0.00170.191320.0008
Override
Cache load0.00170.1945160.0001
Sytem overhead
Fetch class attribute can translate value0.00100.113120.0005
Fetch class attribute name0.00160.188440.0004
XML
Image XML parsing0.00310.353720.0015
class_abstraction
Instantiating content class attribute0.00000.001240.0000
General
dbfile0.00300.3441170.0002
String conversion0.00000.000840.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs