I have a web app running behind an Apache reverse proxy. All is working well, except the web application uses a hashtag to determine which page is visited, eg: www.example.com/#/foo . If the user types this in all works well. If the user clicks a link to www.example.com/#/foo/bar the slashes are replaced with %2f (HTML encoded); www.example.com/#%2ffoo%2fbar . Whilst this works it looks ugly.
We also have a single reverse proxy exception; /baz .
There is also two URLs that do not use the hashtag, /static and /api .
Current Config:
ProxyPass /baz !
ProxyPass / http://127.0.0.1:8888/
ProxyPassReverse / http://127.0.0.1:8888/
Questions:
Any ideas? Thank you in advance!
We also have a single reverse proxy exception; /baz .
There is also two URLs that do not use the hashtag, /static and /api .
Current Config:
ProxyPass /baz !
ProxyPass / http://127.0.0.1:8888/
ProxyPassReverse / http://127.0.0.1:8888/
Questions:
- How can I use Apache to replace the %2f to slashes, so that the user sees slashes instead? My assumption on rewrite rules is that they are before reverse proxy?
- Is there a way to replace the hashtag with nothing? eg www.example.com/#/foo becomes www.example.com/foo but the non hashtag URLs still work.
Any ideas? Thank you in advance!