Why is Apache's RewriteRule revealing local paths?

前端 未结 3 1690
猫巷女王i
猫巷女王i 2021-01-04 02:36

I\'m trying to use RewriteRules in .htaccess with relative paths, but Apache seems to want to output the physical path instead of the s

3条回答
  •  -上瘾入骨i
    2021-01-04 03:19

    Try this and tell me the result:
    # this doesn't work... 127.0.0.1/wx redirects to 127.0.0.1/C:/path/to/files/yz

    RewriteRule ^wx$ /yz [R]

    put / before yz.

提交回复
热议问题