Welcome Guest, Not a member yet? Register   Sign In
UTF-8 chars in URL!
#1

[eluser]NikosV[/eluser]
ok. this probably has been answered to many times until now, but i am still missing something. I am new into codeigniter so be gentle with my ignorance ;-)

ok, i have developed a project using codeigniter. my language is greek. The problem started when i wanted to change the URLs from mysite.gr/index.php/contact to the seo-friendlier mysite.gr/index.php/(greek word for contact). How can i do that? Does CI supports non-english controller names or non-english function names? is there another way to do that?

Sorry again,
thanks in advance :-)
#2

[eluser]Phil Sturgeon[/eluser]
This is of course difficult as the URL segments map to PHP classes and functions, which are restricted to a-z & underscores.

You can enable UTF-8 characters by entering them into the allowed_chars_list in config.php then set up routes for your Greek URL segments, or by patching the router to convert UTF-8 characters to their nearest a-z characters perhaps?

Either way, no easy task.




Theme © iAndrew 2016 - Forum software by © MyBB