• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error 404 with unicode character in the URL like Japanese

#1
Hi,

I want to allow Unicode character in the URL like Japanese.

I added in my route.php

Quote:$route['category/(:any)'] = 'Category/view/$1';


When I tried access "category/大人っぽすぎる小学生が中学3年生にもなると.html", it's ok. However with the string "category/筧美和子さんのニットの衣装が素晴らしすぎる.html", it failed and return 404 error (please refer this image https://imgur.com/8lCA7s4 )

I don't know why and how to fix it. Please help me, many thanks,
Reply

#2
Well it looks like this 404 error page is from your server ...

So, are you sure you put the .htaccess in the right place? And, by chance, do not have you the static path "category/大人っぽすぎる小学生が中学3年生にもなると.html"? If that is the case, that is why it is shown.
Reply

#3
(11-22-2017, 12:55 PM)natanfelles Wrote: Well it looks like this 404 error page is from your server ...

So, are you sure you put the .htaccess in the right place? And, by chance, do not have you the static path "category/大人っぽすぎる小学生が中学3年生にもなると.html"? If that is the case, that is why it is shown.

Thanks natanfelles, my .htaccess as follow
Quote:AddDefaultCharset UTF-8

<IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond $1 !^(index\.php|resources|robots\.txt)
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php/$1 [L,QSA]
</IfModule>


My code worked almost cases like:
Quote:category/കതത-കഥ-മലയള.html
category/大人っぽすぎる小学生が中学3年生にもなると.html
category/ДАВАЙТЕ-ПОЗНАКОМИМСЯ.html
category/ગજરત-સકસ-વડય.html

Please help me,
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.