url hyphens instead of underscores and html file extension

Author Message

kris james

Friday 02 December 2005 3:22:42 pm

I am trying to get my urls to look like the ones on http://www.oneworldmarket.org
1)The folder names with spaces have hyphens "-" and not underscores "_" example: "ez-publish" and not "ez_publish"
2)The url extensions end with ".html"

My system:
EZ 3.7.2
Virtual Hosting - with full ssh root access
php 4.3.11 with mod_rewrite available

I have aleady read the following related posts:
http://ez.no/products/ez_publish_cms/documentation/configuration/configuration/site_access
http://ez.no/community/forum/install_configuration/howto_remove_indexphp_in_urls
http://ez.no/products/ez_publish_cms/documentation/configuration/security/non_virtualhost
Thanks

Sam Wong

Friday 02 December 2005 10:01:59 pm

Hi, I have been trying to do the same without much success.

I think trying the ".html" is easier to do than the other one. Tho, you must keep in mind it has to be limited to the 'public' area. I'm not too sure what will happen if the admin area pages all have the ".html" in the links too.

I have been looking for ways to edit "ezurl". So, this should give you a start.

kris james

Sunday 04 December 2005 6:58:59 am

Thanks Sam, I am only trying to let this work for the public urls.
Any help from others who may have successfully done this before would be greatly appreciated.
Thanks

steve walker

Sunday 04 December 2005 8:59:19 am

Hi Kris,

Responding after receiving your email.

FYI, we used Mambo for our own website - we tend to build with either Mambo or Ez, and we use Ez for situations where we need programming muscle which wasnt necessary on our own site.

Consequently, the way we got our urls to be in the format /some-page-name.html is using a compenent called 404sef.

I'll be interested to see the answer about changing Ez urls too, sorry I cant be of more assistance.

Regards, Steve.

http://www.oneworldmarket.co.uk

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 19:39:10
Script start
Timing: Jan 18 2025 19:39:10
Module start 'layout'
Timing: Jan 18 2025 19:39:10
Module start 'content'
Timing: Jan 18 2025 19:39:10
Module end 'content'
Timing: Jan 18 2025 19:39:10
Script end

Main resources:

Total runtime0.0178 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.0084 589.5156152.6875
Module start 'layout' 0.00840.0041 742.203139.5078
Module start 'content' 0.01250.0034 781.710989.3047
Module end 'content' 0.01600.0018 871.015634.3047
Script end 0.0178  905.3203 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002513.9224140.0002
Check MTime0.00116.3255140.0001
Mysql Total
Database connection0.00116.409710.0011
Mysqli_queries0.006033.422930.0020
Looping result0.00000.152410.0000
Template Total0.00158.710.0015
Template load0.00094.845410.0009
Template processing0.00073.818510.0007
Override
Cache load0.00073.679510.0007
General
dbfile0.00021.108480.0000
String conversion0.00000.061540.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