General ⇒ $this->Website ⇒ URLs without .html ⇒ Community Forums ⇒ CPG Dragonfly™ CMS
Forum Index$this->Website

URLs without .html Reply to topic


Hi,
I noticed that the getlink() is outputting URLs ending with / instead of .html at this site. I like it this way, what's required for this enhancement and will it get to the core?

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
-


The ability to change this has always been in core.

includes/functions/linking.php, find
		if (ereg('#', $url)) {
			$url = ereg_replace('#', '.html#', $url);
		} else $url .= '.html';
change to
		if (ereg('#', $url)) {
			$url = ereg_replace('#', '/#', $url);
		} else $url .= '/';

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


Nice, thanks Smile

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
-


this improve spiders caching?
Google indexing, pagerank or something?

www.greenday2k.net

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


Not particularly - just saves 4 characters.

With or without LEO makes little difference - what matters is still relevant and quality content, above all else.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):

All times are UTC


Jump to: