将 URL .htaccess 中的 @ 替换为 _at_

发布于 2024-09-25 07:15:07 字数 356 浏览 2 评论 0原文

我有以下 URL:

http://testhost.com/offers/311/133/[email protected]/

我想将其重定向到此 url:

http://testhost.com/offers/311/133/test_at_test.com/

有人可以向我提供重写条件和规则来执行此操作吗?

提前致谢!

I have the following URL:

http://testhost.com/offers/311/133/[email protected]/

and I'm wanting to redirect it to this url:

http://testhost.com/offers/311/133/test_at_test.com/

Can someone provide me with the Rewrite Conditions and Rule to do this?

Thanks in advance!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

末骤雨初歇 2024-10-02 07:15:07

尝试以下规则:

RewriteRule ^([^@]*)@(.*) /$1_at_$2

对于外部重定向,添加 [R,L] 标志。

Try this rule:

RewriteRule ^([^@]*)@(.*) /$1_at_$2

For an external redirect, add the [R,L] flag.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文