Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试编写一个 RewriteRule 以便我可以重定向一个像
http://example.com/cont.php?fdsfsd=fdsfsd
到带有字符 %3 的参数的 url,例如:
http://example.com/another.php?var=ntvpz2hrzm0&cof=FORID%3dsa
在 % 前面加一个反斜杠
RewriteRule cont.php another.php?var=ntvpz2hrzm0&cof=FORID\%3dsa [R=301,NE,L]
NE 标志也可能是必要的,以防止以后的进程试图转义 % 符号。