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.

eZ debug

Timing: Jan 31 2025 04:21:15
Script start
Timing: Jan 31 2025 04:21:15
Module start 'layout'
Timing: Jan 31 2025 04:21:15
Module start 'content'
Timing: Jan 31 2025 04:21:15
Module end 'content'
Timing: Jan 31 2025 04:21:15
Script end

Main resources:

Total runtime0.0146 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 588.2656151.2266
Module start 'layout' 0.00570.0020 739.492236.6797
Module start 'content' 0.00760.0058 776.171986.0781
Module end 'content' 0.01340.0011 862.250029.9922
Script end 0.0145  892.2422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002013.7311140.0001
Check MTime0.00106.7689140.0001
Mysql Total
Database connection0.00106.919610.0010
Mysqli_queries0.002517.456330.0008
Looping result0.00000.055710.0000
Template Total0.00085.810.0008
Template load0.00064.411610.0006
Template processing0.00021.367910.0002
Override
Cache load0.00043.091210.0004
General
dbfile0.002819.173180.0003
String conversion0.00000.034440.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