URL percent encoding is not working

后端 未结 1 1258
感动是毒
感动是毒 2021-01-22 06:27

I\'m trying to do a somewhat simple thing with no luck - I want to display Hebrew/Arabic characters in my URL.

For example: I want the URL to display a file named:

相关标签:
1条回答
  • 2021-01-22 07:02

    The solution was to set a mod rewrite the .htaccess in www.example.com. For example, if you want your link to be www.example.com/عربية and file www.example.com/arabic.php to actually handle the request behind the scenes, then simply write this code in the .htaccess file:

    RewriteEngine 
    OnRewriteRule ^عربية$ arabic.php 
    
    0 讨论(0)
提交回复
热议问题