Forums / Setup & design / Nice URLs not working

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.

eZ debug

Timing: Jan 18 2025 04:13:44
Script start
Timing: Jan 18 2025 04:13:44
Module start 'content'
Timing: Jan 18 2025 04:13:44
Module end 'content'
Timing: Jan 18 2025 04:13:45
Script end

Main resources:

Total runtime1.0051 sec
Peak memory usage4,096.0000 KB
Database Queries201

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 587.7031180.8438
Module start 'content' 0.00630.8460 768.5469627.3672
Module end 'content' 0.85230.1528 1,395.9141337.3828
Script end 1.0050  1,733.2969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.3908210.0002
Check MTime0.00150.1479210.0001
Mysql Total
Database connection0.00070.073810.0007
Mysqli_queries0.930192.53772010.0046
Looping result0.00220.22141990.0000
Template Total0.976697.220.4883
Template load0.00210.212020.0011
Template processing0.974596.954920.4872
Template load and register function0.00020.016410.0002
states
state_id_array0.00090.088910.0009
state_identifier_array0.00100.099120.0005
Override
Cache load0.00180.1788380.0000
Sytem overhead
Fetch class attribute can translate value0.00140.142750.0003
Fetch class attribute name0.00100.100560.0002
XML
Image XML parsing0.00170.169250.0003
class_abstraction
Instantiating content class attribute0.00000.000960.0000
General
dbfile0.00260.2620330.0001
String conversion0.00000.000630.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
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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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