Forums / Developer / URL's ending with .html
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/subfolder2http://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.htmlhttp://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
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?