Nice URLs not working

Author Message

Alek Andreev

Sunday 07 September 2003 4:44:02 am

Hello. I enabled nice URLs on my installation, but they don't appear to be working. When I call a "nice" URL, I get the root folder displayed.

I am using a clean installation of eZp 3.2 beta 2 with the corporate demo site.

I have this in my .htaccess:
RewriteEngine On
RewriteRule !\.(gif|jpe?g|png|css|js|html)$ index.php

and this in site.ini (only the stuff related to URL translation):
[URLTranslator]
Translation=enabled
NodeTranslation=enabled

The link is "/about" and is generated with $Folder.item.url_alias|ezroot . I also tried /about.html, /acs/about (acs is the site name), and index.php/about/. All of them display the root folder instead. Hitting a non-existent path also displays the root folder. /content/view/ works OK though.

Bjørn Kaarstein

Sunday 07 September 2003 11:55:22 pm

Try {$Folder:item.url_alias|ezroot}

Regards Bjørn

Bruce Morrison

Monday 08 September 2003 12:14:36 am

Make sure you have

[URLTranslator]
Translation=enabled
NodeTranslation=enabled

in your settings/override/site.ini.append.php file

Also run

php -C update/common/scripts/updateniceurls.php

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Volker Lenz

Saturday 13 September 2003 2:47:21 am

Must be something else wrong.
In my environment, the {$:item.url_alias|ezroot} always appends a root folder too much when creating the nice url. So I get

www.myhost.com/root/root/....

instead of an appropriate

www.myhost.com/root/...

I guess there's a destructive interference with caching, because I get yet another /root/ appended each time I press a link with the nice url operators behind ;-). Thus, after having pressed the link 4 times, I see the curious thing

www.myhost.com/root/root/root/root/root/path_to_content

in my browser's URL-input field.

But you made that nice url stuff work, didn't you? So there must be something wrong in my environment I can't imagine.

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 11:17:44
Script start
Timing: Jan 18 2025 11:17:44
Module start 'layout'
Timing: Jan 18 2025 11:17:44
Module start 'content'
Timing: Jan 18 2025 11:17:45
Module end 'content'
Timing: Jan 18 2025 11:17:45
Script end

Main resources:

Total runtime0.7707 sec
Peak memory usage4,096.0000 KB
Database Queries64

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 589.0391152.6250
Module start 'layout' 0.00600.0026 741.664139.4453
Module start 'content' 0.00860.7604 781.1094622.2891
Module end 'content' 0.76900.0016 1,403.398412.1719
Script end 0.7706  1,415.5703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4248160.0002
Check MTime0.00140.1757160.0001
Mysql Total
Database connection0.00140.184610.0014
Mysqli_queries0.706291.6375640.0110
Looping result0.00090.1203620.0000
Template Total0.740196.020.3700
Template load0.00220.279520.0011
Template processing0.737995.751420.3690
Template load and register function0.00020.031210.0002
states
state_id_array0.00140.180010.0014
state_identifier_array0.00150.196920.0008
Override
Cache load0.00190.2469380.0001
Sytem overhead
Fetch class attribute can translate value0.00110.137240.0003
Fetch class attribute name0.00230.294860.0004
XML
Image XML parsing0.00140.179140.0003
class_abstraction
Instantiating content class attribute0.00000.002060.0000
General
dbfile0.00090.1159220.0000
String conversion0.00000.001140.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/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: 21
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs