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/
read also...
- 20/12/2009 -- 15 Rules to follow for safer web applications (3)
- 15/12/2009 -- Athens StartUp Weekend 2 (0)
- 01/05/2009 -- Hotlinking, Bandwidth Theft and mod_rewrite (0)
- 30/03/2011 -- Project: Loukoulos.com (4)
- 02/07/2010 -- FizzBuzz questions & coding for fun! (4)
- 07/04/2010 -- Cholesterol Levels 2010 (= Greek Easter) (1)
- 07/03/2010 -- Dutch PHP Conference 2010 (0)
- 15/02/2010 -- Track My Weather v.0.5 – Facebook Application (1)
- 29/07/2009 -- Track My Weather v.0.1 – Facebook Application (0)
- 01/07/2009 -- PHP 5.3.0 Released! (0)
Reached your blog post through Delicious. You already know I will be subscribing to your feed.
Thanks man ..
i had a problem that Arabic character links did not work ^^
I am glad I could help
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.
Have a look here…
http://www.my-soul.net/blog/
and escpecially this one (page)
http://www.my-soul.net/blog/από-άγχος-χαρακτηριστικών/
or this…
http://www.my-soul.net/blog/από-άγχος-χαρακτηριστικών
which is the same as you can see and works with or without the final / .
Nevertheless, I will look into it more thoroughly later and I will let you know
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!
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?
I have test it with Firefox, Opera, Chrome (browsers that I use mostly and it works fine…) but I didn’t test it with IE! The most strange thing is that if you have a look in this post http://www.loukoulos.com/2011/06/ντομάτες-γεμιστές-με-φρέσκα-λαχανικά/ (with IE9) inside the content of the post IT WORKS ?!?!
I will have a look into it more closely to see what is going on…
Thanks, I appreciate this. By the way in IE8 doesn’t work.