Skip to content

输入域名www.test.com,默认到VUE的http://www.test.com/pigeon/index.html#/Fund/Index这个页面,怎么配置呀? #819

Discussion options

You must be logged in to vote

浏览器发送请求时,请求uri中并不会包含 #/Fund/Index (#是用来指导浏览器动作的)

  • 后端实例看起来可以正确处理 Host为www.test.com且URI为 pigeon/index.html的请求,而无法处理 Host为www.test.com且URI为 pigeon/index.html#/Fund/Index 或 pigeon/index.html%23/Fund/Index 的请求

建议:

  1. 方式一、在mod_rewrite配置中去掉Params包含#的部分
  2. 方式二、使用mod_redirect模块(参见 https://www.bfe-networks.net/zh_cn/modules/mod_redirect/mod_redirect/
    注:其中Cmd设置为URL_SET, Params 设置为 http://www.test.com/pigeon/index.html#/Fund/Index

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@willzhujian
Comment options

Comment options

You must be logged in to vote
1 reply
@willzhujian
Comment options

Answer selected by mileszhang2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants