Reply To: Rewrite not working

Splash Forums Rewrite Users Rewrite not working Reply To: Rewrite not working

#25204

rahulsoni
Participant

Christian Sir,
Thanks a Tonnnnnn,
The Configuration file is now loading and the URL rewriting is now working. But I’m still not getting the desired URL effect.

What I want is that when the Link in index.jsp is clicked the URL:
NewFile

The URL should be:
http://localhost:8080/MyProject/11/article

But the URL that is being displayed is:
http://localhost:8080/MyProject/NewPages/other.html

My Rule is:
.addRule()
.when(Direction.isInbound().and(Path.matches(“/11/article”))) .perform(Redirect.temporary(“/MyProject/NewPages/other.html”));

What I want is that the URL should be the same as I’ve provided in the href of the anchor but the request should indirectly be forwarded to the desired location..

How can I achieve this…

Thanks in advance..

  • This reply was modified 8 years, 3 months ago by  rahulsoni.
  • This reply was modified 8 years, 3 months ago by  rahulsoni.