URL无法使用编码-发现错误404

问题描述 投票:0回答:1

[当我尝试访问编码的URL时

已解码:https://downloaderapk.site/µtorrent-remote

编码:https://downloaderapk.site/%C2%B5torrent-remote

我有

404错误。找不到页面。

我的.htaccess重写规则为

RewriteRule ^([0-9a-zA-Z_-]+)$ app.php?&slug=$1 [NC,L]
RewriteRule ^([0-9a-zA-Z_-]+)/$ app.php?&slug=$1 [NC,L]

我认为我忘记了重写规则?

php .htaccess urlencode urldecode
1个回答
0
投票

您的重写规则中的regex模式不包括用于编码非ASCII字符的%。

替换为

^(.+)$
© www.soinside.com 2019 - 2024. All rights reserved.