Search Engine Friendly URL in LifeType Tag Cloud Plug-in
Dflying | 15 March, 2006 17:14Currently the Tag Cloud Plug-in of LifeType uses search to fetch related topics and just shows the raw URL such as http://dflying.dflying.net/index.php?searchTerms=ajax&op=Search&blogId=1 which may not friendly enough to search engines. I’ve added a line in .htaccess file
# Search (i.e. /plog/1_userfoo/search/keyword.html)
RewriteRule ^([0-9]+)_[^/]+/search/([^.]+).html$ index.php?
blogId=$1&op=Search&searchTerms=$2 [L,NC]
To make the url like http://dflying.dflying.net/1/search/atlas.html. here ‘atlas’ is the keyword.
Then change the plugintagcloud.class.php file line 152 and line 153 to generate friendly urls:
$baseUrl = $rg->getBaseUrl(); $Cloud .= "<a href='{$baseUrl}/{$blogId}/search/{$k}.html' " ."style='font-size: {$size}px; color: #{$r}{$g}{$b}' " ."title='$k($v)'>$k</a> ";
Just download here if you do not like to modify: http://dflying.dflying.net/1/resources/plugintagcloud.zip.html
Posted in
LifeType.
Comment: (0).
Trackbacks:(1).
Permalink
«Next post |
Previous post»




