Archive

Posts Tagged ‘Wordpress’

WordPress – non Latin characters in URL

March 15th, 2011 No comments

If title has non-ASCII letters, those letters cannot be directly put in URL so they are percent-encoded. This is processed in sanitize_title_with_dashes_original() and utf8_uri_encode() .

The problem is, these two functions normalizes too much for replacing to small letters.

For example, in unit test data, “Zhang Ziyi(in Chinese)” is currently converted to “%e7%ab%a0%e5%ad%90%e6%80%a1″, however, this should be “%E7%AB%A0%E5%AD%90%E6%80%A1″.
Read more…

Google XML Sitemaps is not multisite compatible

June 27th, 2010 No comments

“Google XML Sitemaps is not multisite compatible” :(

I’ll be very happy when it’s available for WP 3.0 multi-user too!

I make changes for start it work:

1.Modification on wp-content/plugins/google-sitemap-generator/sitemap.php

//Check for 3.0 multisite, NOT supported yet! // if((defined(‘WP_ALLOW_MULTISITE’) && WP_ALLOW_MULTISITE) || (function_exists(‘is_multisite’) && is_multisite())) { // if(function_exists(‘is_super_admin’) && is_super_admin()) { // add_action(‘admin_notices’, array(‘GoogleSitemapGeneratorLoader’, ‘AddMultisiteWarning’)); // } // // return; // }

2. .htaccess

RewriteRule ^sitemap.xml sitemap-%{SERVER_NAME}.xml [L]
RewriteRule ^sitemap.xml.gz sitemap-%{SERVER_NAME}.xml.gz [L]

Categories: Wordpress Tags: , ,