Add ".html" & remove "index.php/default" from URLs

Author Message

Sam Wong

Saturday 19 November 2005 8:29:04 am

Hi, i got the .htaccess codes necessary for ezpublish to recognize http://www.domain.com/sample.html the same as http://www.domain.com/index.php/default/sample

I was wondering how I can remove "index.php/default" as well as add ".html" to my URL. The removal part seems easy by changing |ezurl to |ezroot.

However, adding ".html" is complicated.

I tried concat but there's always a double quote leading to this: <a href=http://www.domain.com/"sample".html>

<a href={concat("http://domain.com/",$next_log[0].url_alias|ezroot,".html")}>Something here</a>

This makes me wonder if I should change all the URLs by tweaking the template override, but I don't know where to start.

Anyone has a good tutorial?
Thanks!

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.