Forums / Install & configuration / Handling URL wildcards

Handling URL wildcards

Author Message

Pascal France

Wednesday 13 May 2009 1:26:21 am

Hi,

I'm working with eZP 4.1.1 and there is something I don't understand with the handling of the URL wildcards.

If I set:

URL alias wildcard: ezinfo/about
Destination: /

then the URI http://mysite/ezinfo/about is redirected to http://mysite/ (so that the <i>about</i> page is not displayed). Ok.

Now, I have an item (item1) in my menu which is a link (<i>link</i> object class) to another node of my site. So that, when we clic this item we are redireted to this another node.

But if I write the following URI:

http://mysite/item1/

directly in the adress barre of my browser then it is the default view template (/node/view/full.tpl) wich is displayed. Ok.

So, I set a new redirection like that:

URL alias wildcard: item1
Destination: /

But it does not work. I have tried many syntaxes without success.

It seems there is something I misunderstand :-(

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Pascal France

Wednesday 13 May 2009 1:59:43 am

Hi,

The node ID of <i>item1</i> is 201.
I have tested this setting:

URL alias wildcard: content/view/full/201
Destination: /

and the redirection of http://mysite/content/view/full/201 works perfectly.

But

URL alias wildcard: item1
Destination: /

still does not work.

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Pascal France

Wednesday 13 May 2009 3:46:57 am

Hi,

I'm always looking for a solution...

The nodeID of <i>item1</i> is 100 and the generated alias is named <i>item1</i> and points to content/view/full/100

In the interface for managing the URL aliases of the content node 2 I have set a new alias named </i>content/view/full/100</i> wich points to /

So now http://mysite/content/view/full/100 goes to http://mysite/.
But http://mysite/item1 does not go to http://mysite/

If <i>item1</i> points to content/view/full/100 and content/view/full/100 to / why <i>item1</i> does not points to / ?!

Pascal

Ce qui embellit le désert c'est qu'il cache un puits... quelque part... (A. de Saint-Exupéry) - http://luxpopuli.fr/eZ-Publish

Nicolas Pastorino

Friday 15 May 2009 4:40:48 am

Hi Pascal,

The issue you are encountering is that you cannot override a system-generated URL alias, like http://mysite/item1/.

Alternative to this could be, ordered by increasing cost :
* Use javascript redirection to the root of your site. This can be implemented in the Link's class full view. Not the cleanest solution SEO-wise
* Develop a clean redirection operator, used in the afore-mentioned template.

Let us know how things go,

--
Nicolas Pastorino
Director Community - eZ
Member of the Community Project Board

eZ Publish Community on twitter: http://twitter.com/ezcommunity

t : http://twitter.com/jeanvoye
G+ : http://plus.tl/jeanvoye

eZ debug

Timing: Jan 30 2025 21:42:46
Script start
Timing: Jan 30 2025 21:42:46
Module start 'content'
Timing: Jan 30 2025 21:42:46
Module end 'content'
Timing: Jan 30 2025 21:42:46
Script end

Main resources:

Total runtime0.3639 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0075 587.9453370.2969
Module start 'content' 0.00750.0133 958.24221,005.5313
Module end 'content' 0.02080.3430 1,963.77343,894.6953
Script end 0.3638  5,858.4688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00451.2282200.0002
Check MTime0.00140.3890200.0001
Mysql Total
Database connection0.00060.176210.0006
Mysqli_queries0.264572.68071410.0019
Looping result0.00170.46761390.0000
Template Total0.342594.110.3425
Template load0.00080.224010.0008
Template processing0.341793.907610.3417
Override
Cache load0.00060.152510.0006
Sytem overhead
Fetch class attribute can translate value0.00190.523510.0019
XML
Image XML parsing0.00030.080310.0003
General
dbfile0.00671.8370200.0003
String conversion0.00000.001430.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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