URL's ending with .html

Author Message

Jose Ignacio Honrado

Tuesday 01 May 2007 3:46:24 am

Hi,

I was looking for a solution for the following problem but I don't find it in the eZ forum.

I have a domain http://www.mydomain.com which show its URL's like:

http://www.mydomain.com/folder1
http://www.mydomain.com/folder1/subfolder2
http://www.mydomain.com/folder1/subfolder2/article3

It´s as a virtualhost, without index.php

But now, I want that URL's ends with '.html' for SEO purposes. The results:

http://www.mydomain.com/folder1.html
http://www.mydomain.com/folder1/subfolder2.html
http://www.mydomain.com/folder1/subfolder2/article3.html

Could someone help me?

http://www.tantacom.com

Xavier Dutoit

Tuesday 01 May 2007 6:00:45 am

I strongly doubt that ending .html has any impact anymore, seo wise.

This being said, you can modify all the templates to add a .html at the end of the link and modify your rewrite rule to take into account that extra element.

X+

http://www.sydesy.com

Jose Ignacio Honrado

Wednesday 02 May 2007 4:08:43 am

Thanks.

But, are there any method working? Something in eZ?
I need to make the 'ezurl' operador to build the URL with '.html' and i don't know how.

Then, I was trying to make working the '.html' suffix by means of .htaccess but I don't find the way.

This is my .htaccess:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^webdav\..*
RewriteRule ^(.*) webdav.php [L]

RewriteCond %{HTTP_HOST} ^soap\..*
RewriteRule ^(.*) soap.php [L]

RewriteRule ^var/cache/debug.html.* - [L]
RewriteRule ^var/[^/]+/cache/debug.html.* - [L]
Rewriterule ^var/storage/.* - [L]
Rewriterule ^var/[^/]+/storage/.* - [L]
RewriteRule ^var/cache/texttoimage/.* - [L]
RewriteRule ^var/[^/]+/cache/texttoimage/.* - [L]
RewriteRule ^var/.* - [L]
Rewriterule ^design/[^/]+/(stylesheets|images|javascript|js)/.* - [L]
Rewriterule ^share/icons/.* - [L]
Rewriterule ^extension/[^/]+/design/[^/]+/(stylesheets|images|js|javascript?)/.* - [L]
Rewriterule ^extension/.* - [L]
Rewriterule ^packages/styles/.+/(stylesheets|images|javascript)/[^/]+/.* - [L]
RewriteRule .* index.php [L]

Any idea?

http://www.tantacom.com

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

Main resources:

Total runtime0.6902 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 587.9063152.6250
Module start 'layout' 0.00520.0068 740.531339.4453
Module start 'content' 0.01200.6767 779.9766550.2734
Module end 'content' 0.68880.0014 1,330.250012.1875
Script end 0.6901  1,342.4375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00731.0634160.0005
Check MTime0.00180.2642160.0001
Mysql Total
Database connection0.00070.099010.0007
Mysqli_queries0.620089.8350570.0109
Looping result0.00070.0988550.0000
Template Total0.651594.420.3257
Template load0.00230.335120.0012
Template processing0.649294.056420.3246
Template load and register function0.00010.021610.0001
states
state_id_array0.00270.387610.0027
state_identifier_array0.00220.323020.0011
Override
Cache load0.00200.2947470.0000
Sytem overhead
Fetch class attribute can translate value0.00240.349620.0012
Fetch class attribute name0.00150.219050.0003
XML
Image XML parsing0.00270.389520.0013
class_abstraction
Instantiating content class attribute0.00000.001860.0000
General
dbfile0.00260.3792220.0001
String conversion0.00000.001640.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 23
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs