I am using javaFX webView how can I redirect a certain URL to other.
example :-
if user access
example.com/pathabc
redirect it to
example.com/pathxyz
Thank You.
Edit :-
Let's say if I loaded example.com (I can't change this I have to load example.com)
The page example.com has a link to example.com/pathabc and when the user clicks on it can be accessed.
But I don't want to user to access example.com/pathabc so I want to redirect it example.com/pathxyz
Please tell me how can I redirect it.