October 6, 2008 at 3:56 am · Filed under ASP Program and tagged: aCookieStatCounter, all, application, application vnd, application vnd ms-excel, application vnd ms-powerpoint, blog, cannot get cookie, class, com, com project, com project standard, Connection, cookie, download log php, else, end, end if end, error, function, GetAllResponseHeaders, host, HTMLEncode, http, http vhost, http vhost2, HTTP_USER_AGENT, id, image, instr lcase, instr lcase vstr, Keep-Alive, kgetstring, kgetstring vstr, kurlget, lcase, lcase vstr, li, log php project, ohttp, ohttp status, php, php project, php project id, phpsessid, pre, project, project id, project standard, project standard csv, project standard download, red, referer http vhost2, response, server htmlencode, server htmlencode vcookie, serverVariables, set-cookie, setRequestHeader, standard, standard download log, statcounter, statcounter com, statcounter com project, User-Agent, username or password, vcookie, vcookie kgetstring vcookie, vhost, vhost2, vnd, vprojectid, vstr, vstr kurlget, vuser, web, Write, x-www-form-urlencoded
June 22, 2008 at 9:21 pm · Filed under WordPress and tagged: blog, category, category_id, function, nicename, permalink, Permalink Structure, php, plugin, Structure, web, WordPress
What is SINGLE “Category Permalink Structure”?
Here is an example:
One of my blog category URL looks like this before:
http://fashion.postedpost.com/category/fashion-house/accessories/ties/
After single it, it will look like:
http://fashion.postedpost.com/category/ties/
Why we need shorter category permalink?
- Shorter is better, you know, size is always an issue.
- Change categories structure anytime without change urls
- Avoid duplicate content issue, because both of URLs are display a same webpage.
How to do it.
Find category-template.php in WordPress wp-includes folder, find this function: function get_category_link($category_id)
Comment the following lines:
//if ( $parent = $category->parent )
// $category_nicename = get_category_parents($parent, false, ‘/’, true) . $category_nicename;
(or get a plugin if you like)