php - .htaccess file doesn't accept arabic -
i have .htaccess file following code:
options +followsymlinks rewriteengine on rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewritecond %{request_filename} !-l rewriterule /(.*)\.html article.php?title=$1
to convert url article.php?title=xxxx
article/xxxx.html
url contains arabic , english...
so when enter url
article/تسريب-أولى-صور-هاتف-lg-g4s-الجديد.html
its working fine when visit article url
article/cloneapp-نقل-برامجك-المفضلة-بكامل-إعدادتها-من-ويندوز-إلى-اخر-نقرة-زر.html
not working: objet non trouvé!
what problem (different between them?) why first works , second not!
thanks alot in advance.
most issue rewriting rule. explicitly crafter such gets applied requests consist of ascii characters, underscore or hyphen in slug part of url. won't match arabic characters in url. have change rule accept more or less expect special characters:
rewriterule ^([0-9]+)/([^/]+)/?$ article.php?id_art=$1 [nc,l]
taken question asking similar thing how enable arabic slug in htaccess?
hope helps.
Comments
Post a Comment