WordPress permalinks with Greek/Russian/Arabic characters

Server Settings
OS: Linux
HTTP Server: Apache2
Database: MySQL (utf-8)
Scripting Language: php 5
Software: wordpress 3.0.4 - wp-confing.php

define('DB_CHARSET', 'utf8');

Create an .htaccess file in your root directory ( e.g www.example.com/ )

vi .htaccess #(you may have to sudo or su)

Add the following lines in the file .htaccess file…

# Disable Directory Browsing
Options All -Indexes

# Secure access to .htaccess files
<Files .htaccess>
order allow,deny
deny from all
</Files>

Save the file and exit vi (:wq).
You may have to give full access rights to .htaccess!?

chmod 777 .htaccess #(you may have to sudo or su)

Open your favorite browser, go to your www.example.com/wp-admin section then choose

Settings -> Permalinks

and apply your custom structure…

( e.g /%year%/%monthnum%/%postname%/ )

Save Changes

IMPORTANT
Remove the full access rights from .htaccess!

chmod 644 .htaccess #(you may have to sudo or su)

You are done! Enjoy your wordpress custom permalinks in your preffered language.

I have test it with greek, russian and arabic and worked as a charm!
See an example…
http://www.my-soul.net/blog/

;)

1 Star2 Stars (+34 rating, 15 votes)
Loading ... Loading ...
Share

read also...

Leave a comment ?

10 Comments.

  1. Reached your blog post through Delicious. You already know I will be subscribing to your feed.

  2. Thanks man ..
    i had a problem that Arabic character links did not work ^^

  3. It works like a charm for posts, but strangely not for pages! To be precise, pages with Greek character urls work without the final / but do not work with an / at the end.
    A solution to this would be appreciated.

  4. Does not work for me on WordPres 3.2.1 and getting errors if I set define(‘DB_CHARSET’, ‘utf-8′); instead define(‘DB_CHARSET’, ‘utf8′);

    • Bokac you are right about the…

      define('DB_CHARSET', 'utf-8');

      The correct is…

      define('DB_CHARSET', 'utf8');

      I have corrected in my post and I am sorry for the inconvenience!

  5. When I try to view your site in IE, both pages and posts, the greek/arabic/russian charachers dont show up, instead I get the usual (http://www.my-soul.net/blog/2011/01/%d0%b8%d1%85-%d0%b4%d0%b2%d0%b5-%d0%b2%d1%80%d0%b5%d0%bc%d0%b5%d0%bd%d0%b8-%d0%bf%d1%80%d0%be%d0%b3%d1%80%d0%b0%d0%bc%d0%bc/)
    I don’t have this problem in Firefox. Any ideas why that is?

  6. Thanks, I appreciate this. By the way in IE8 doesn’t work.

Leave a Comment

NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>