View Single Post
  #1 (permalink)  
Old 07-13-2008, 06:48 AM
tasmaniac tasmaniac is offline
New Pligger
 
Join Date: May 2007
Posts: 19
Thanks: 1
Thanked 0 Times in 0 Posts
Question URL Method 2 Bug w/ Turkish Characters

Hello,

I'm doing SEO things to my Turkish Pligg site and came across to URL Method 2. I applied all the instructions to my .htaccess file and checked for the mod_rewrite option is enabled.

But I have a serious problem with stories that have Turkish characters like şŞçÇüÜğĞıİöÖ on title because when clicked on one of them the page gives 404 not found error.

I think I have to change these Turkish chars somewhere in the code with the English compatible version. Ex: Ulaşım --> Ulasim

I found a code in the phpbb support forum and thought that I need something like these for Pligg. You can see the code below.

PHP Code:
$url str_replace (array('ğ','Ğ'), 'g'$url);
$url str_replace ("İ"'i'$url);
$url str_replace (array('ş','Ş'), 's'$url);
$url str_replace (array('ğ','Ğ'), 'g'$url);
$url str_replace ("İ"'i'$url);
$url str_replace (array('ş','Ş'), 's'$url);
$url str_replace ("ı"'i'$url); 
With begining level programming and codding knowledge I couldn't solve this problem. If someone suggest a solution I'll be appreciate.

Also It will be very helpful if pligg developers will implement a permanent solution for this case.
Reply With Quote