使用 Mod_Rewrite 重写 URL

发布于 2024-08-23 18:08:04 字数 435 浏览 2 评论 0原文

原问题:

什么可能是mod_rewrite,用这种结构重写网址:http://hiwis.net/jobs /Computer/ 到具有以下结构的内容: http://hiwis.net/Computer/

-

我我的 hiwis(dot)net 站点需要 mod_rewrite 的一些帮助,以将具有以下结构的 URL 重写: hiwis(dot)net/jobs/Computer/ 到具有以下结构的内容: hiwis(dot)net/Computer/ ,谢谢。

Original Question:

what could be the mod_rewrite, to rewrite urls with this structure: http://hiwis.net/jobs/Computer/ to something with this structure: http://hiwis.net/Computer/

--

I need some help with the mod_rewrite for my hiwis(dot)net site to rewrite URLs with this structure: hiwis(dot)net/jobs/Computer/ to something with this structure: hiwis(dot)net/Computer/ , thanks.

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

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

发布评论

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

评论(1

你如我软肋 2024-08-30 18:08:04
RewriteRule ^/?jobs/Computer/(.*)$ /Computer/$1 [R]
RewriteRule ^/?jobs/Computer/(.*)$ /Computer/$1 [R]
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文