Forums / Developer / URL's ending with .html

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

eZ debug

Timing: Jan 18 2025 02:58:51
Script start
Timing: Jan 18 2025 02:58:51
Module start 'content'
Timing: Jan 18 2025 02:58:52
Module end 'content'
Timing: Jan 18 2025 02:58:52
Script end

Main resources:

Total runtime0.6502 sec
Peak memory usage4,096.0000 KB
Database Queries194

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 588.8359180.8438
Module start 'content' 0.00620.5507 769.6797555.3516
Module end 'content' 0.55690.0933 1,325.0313336.7734
Script end 0.6502  1,661.8047 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.5420210.0002
Check MTime0.00140.2088210.0001
Mysql Total
Database connection0.00080.128610.0008
Mysqli_queries0.585089.97491940.0030
Looping result0.00140.22061920.0000
Template Total0.624796.120.3123
Template load0.00190.284720.0009
Template processing0.622895.790020.3114
Template load and register function0.00010.014310.0001
states
state_id_array0.00110.176110.0011
state_identifier_array0.00080.118320.0004
Override
Cache load0.00160.2443470.0000
Sytem overhead
Fetch class attribute can translate value0.00090.145230.0003
Fetch class attribute name0.00090.133250.0002
XML
Image XML parsing0.00230.349630.0008
class_abstraction
Instantiating content class attribute0.00000.001560.0000
General
dbfile0.00500.7744330.0002
String conversion0.00000.000830.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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