URL in mixed languages

Author Message

Guillaume Kulakowski

Friday 20 May 2011 2:02:32 am

Hi,

currently, is it possible to have an url in full french (normal ;-)):

http://mysite.fr/part_in_fr/other_part_in_fr/final_part_in_fr

Is it also possible to have an URL in full english (normal ;-):

http://mysite.com/part_in_en/other_part_in_en/final_part_in_en

The problem is that is it also possible to mix french and english in URL, like that :

http://mysite.fr/part_in_en/other_part_in_en/final_part_in_fr

Is it possible to disallow that ?
Thx.

My blog : http://www.llaumgui.com (not in eZ Publish ;-))
eZC on RHEL : http://blog.famillecollet.com/pages/Config-en
eZC on Fedora : just "yum install php-channel-ezc"

Brandon Chambers

Tuesday 07 June 2011 2:51:56 pm

Sure, I think the best route might be rewrite rules for your case.

Brandon Chambers
brandon@granitehorizon.com
blog: http://blog.divdesigns.com
Granite Horizon / http://granitehorizon.com

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

Main resources:

Total runtime0.0192 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.0069 587.8047152.6094
Module start 'layout' 0.00690.0029 740.414139.4219
Module start 'content' 0.00980.0071 779.835989.4141
Module end 'content' 0.01690.0023 869.250030.2891
Script end 0.0192  899.5391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002814.6629140.0002
Check MTime0.00126.1891140.0001
Mysql Total
Database connection0.00094.495310.0009
Mysqli_queries0.003116.292330.0010
Looping result0.00000.078110.0000
Template Total0.00189.510.0018
Template load0.00094.879410.0009
Template processing0.00094.547310.0009
Override
Cache load0.00063.310710.0006
General
dbfile0.002512.889880.0003
String conversion0.00000.044640.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