我使用XAMPP v3.2.1并且路由适用于所有网址,除非网址中有م
。 (م
是波斯语)。
例如这个URL的漏洞是404 Not Found:
localhost/FolderName/ClassName/MethodName/arg1/سلام%20بر
// if I remove this ^ character, everything will be fine
该网址的输出:
Not Found
The requested URL /myweb/islamic_sources/quran/843/سلام بر was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.4.12 (Win32) OpenSSL/1.0.1l PHP/5.6.8 Server at localhost Port 80
我该如何解决?
答案 0 :(得分:0)
如果通过str_replace传递值,会发生什么?
$oldurl = '...._persian_character_ ....';
$newurl = str_replace('_persian_character_', '', $oldurl);