我有一个问题,我想根据引用 url 的子字符串重定向用户,我如何使用 htaccess 来完成?
- 用户在http://example.com/aqeel/videos/
- 上面的页面有一个超链接http://demo.example.com/
- 当用户到达http://demo.example.com/时,我希望他被重定向到http://demo.example.com/login/aqeel/,这里 aqeel 是从步骤 htaccess 中的引用 url 捕获的子字符串1 个网址。
提前致谢,