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.