使用 htaccess 重定向

发布于 2024-10-03 09:56:53 字数 285 浏览 0 评论 0原文

我有这个位置

http://somesite.com/pot_system.shtml

,我想重定向到

http://somesite.com/build_me_today

可能使用过

我想通过 htaccess 执行此操作,我

Redirect /pot_system.shtml http://somesite.com/build_me_today

I have this location

http://somesite.com/pot_system.shtml

and i want to redirect to

http://somesite.com/build_me_today

I want to do this via htaccess is that possible

I used

Redirect /pot_system.shtml http://somesite.com/build_me_today

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

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

发布评论

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

评论(3

仙气飘飘 2024-10-10 09:56:53

最简单的方法:

Redirect /pot_system.shtml /build_me_today

Simplest way:

Redirect /pot_system.shtml /build_me_today
岁月流歌 2024-10-10 09:56:53

使用 301 重定向:

Redirect 301 /pot_system.shtml /build_me_today

Using a 301 redirect:

Redirect 301 /pot_system.shtml /build_me_today
夕嗳→ 2024-10-10 09:56:53

@马特:

Options +FollowSymLinks
RewriteEngine on
RewriteRule /pot_system.shtml http://somesite.com/build_me_today [R=301,L]

@Matt:

Options +FollowSymLinks
RewriteEngine on
RewriteRule /pot_system.shtml http://somesite.com/build_me_today [R=301,L]
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文