문제

I have this URL (urlencoded twice):

http%253A%252F%252Fwww.google.cl%252F%2523test (translated: http://www.google.cl/#test)

And this Rewrite Rule:

RewriteRule /linkto/(.*?)/ ${unesc:$1} [R,L]

If i put this url in the browser:

http://localhost/linkto/http%253A%252F%252Fwww.google.cl%252F%2523test/data/

Apache redirects to http://www.google.cl/%23test instead of http://www.google.cl/#test

The problem ocurrs only with # (number sign).

Any ideas?

도움이 되었습니까?

해결책

Can you try NE flag:

RewriteRule ^/?linkto/(.*?)/ ${unesc:$1} [R,L,NE,NC]
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top