查询字符串会附加到已重写工作的URL上

发布于 2025-01-20 11:19:35 字数 239 浏览 1 评论 0原文

我有一个动态页面,我使用mod重写来使URL友好:

重写 ^page/([0-9]+)/([[A-ZA-Z0-9-9-_。]+)?/?/? $ /page.php?id=$1&; slug = $ 2 [nc,l] < /code>

现在我想在某些页面上添加其他参数strong> php $ _ get。因此,我想知道在重写规则中添加它是否有办法。

I have a dynamic page which I used mod rewrite to make the url friendly:

RewriteRule ^page/([0-9]+)/([A-Za-z0-9-_.]+)?/?$ /page.php?id=$1&slug=$2 [NC,L]

Now there are other parameter I want to add to the url for some of the pages, I tried it but was not identified in php $_GET. So I want to know if there is a way to that beside adding it in the rewrite rule.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文