apache - 如何使用 mod_rewrite/htaccess 通过 anchor 检测 URL 并重定向?

标签 apache .htaccess mod-rewrite anchor swfaddress

我见过很多相反的例子,但我希望从 anchor /哈希 URL 转到非 anchor URL,如下所示:

From: http://old.swfaddress-site.com/#/page/name
To:   http://new.html-site.com/page/name

http://karoshiethos.com/2008/07/25/handling-urlencoded-swfaddress-links-with-mod_rewrite/ 中没有任何示例对我有用。听起来 REQUEST_URI 中包含 /#/stuff,但我和我的 Apache (2.0.54) 都看不到它。

有什么想法、过去的经验或成功吗?

最佳答案

# 之后的任何内容都是片段,并且不会被发送到网络服务器。您无法在任何时候捕获它,您必须使用客户端方法来捕获它们。

关于apache - 如何使用 mod_rewrite/htaccess 通过 anchor 检测 URL 并重定向?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3408664/

相关文章:

apache - “%2”在 RewriteRule 上被删除

php - apache 不能与 osx 10.10 php Homebrew 软件一起使用

apache - .htaccess 重定向/重写问题

php - Opencart 2.2.x ssl 用于所有请求

php - 使用 htaccess 在 url 中使用数据库中的数据

mod-rewrite - 删除URL的一部分

php - 如何最小化 .htaccess 规则?

apache - 模组重写。没有尾斜线重定向到尾斜线

regex - 重新运行或继续规则

php - 是否可以重定向发布数据?