将动态页面重定向到不同文件夹中的动态页面
我当前的页面是这样设置的,其中“#”是每个用户的编号;
http://site.com/member.php?u=#
我想将其移动到同一站点上的不同文件夹,我将如何设置 .htacces,以便当某些内容转到上面的页面时,它们会自动重定向到此;
http://site.com/new_folder/member.php?u=#
我看过一些教程,向您展示如何将 member.php?u=234 移动到 /new_folder/member.php?u-234 - 但是当然,新会员一直在注册,即使他们不是我不想为大约 1700 个用户这样做。
任何帮助将不胜感激。
My current page is set up like this, where '#' is a number for each user;
http://site.com/member.php?u=#
I want to move it to a different folder on the same site, how would I set up .htacces so when some goes to the page above, they're automatically redirected to this;
http://site.com/new_folder/member.php?u=#
I have seen a few tutorials that show you how to move say member.php?u=234 to /new_folder/member.php?u-234 - But of course new members are registering all the time and even if they weren't I don't want to have to do that for about 1700 users.
Any help would be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它应该如下所示:
并且初始查询字符串将自动附加到目标 URL 中。
It should be as follows:
And the initial query string will be automatically appended to the destinaion URL.