hide or change parametr from url

Splash Forums Rewrite Users hide or change parametr from url

This topic contains 3 replies, has 2 voices, and was last updated by  Christian Kaltepoth 2 years, 11 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #24853

    hasan_safiary
    Participant

    i want to my url dont show parametr or change url that dont have query string in end of url.
    i handle it with url-mapping but i want all view-id have a url-mapping or handle it with regular experision.

    can any one help me to do this.

    my code is:
    <url-mapping>
    <pattern value=”/baseinformation/#{cid}/”/>
    <view-id value=”/baseinformation.htm”/>
    </url-mapping>

    #24854

    Yes, you can do this with PrettyFaces. If you want to have a single mapping for many URLs, I recommend to have a look at Rewrite, which is the successor of PrettyFaces.

    Could you give us a concrete example of an URL you would like to rewrite?

    #24855

    hasan_safiary
    Participant

    tanks from your answer.

    for example my url is this and i want to hide cid from it.

    http://192.168.1.78:9393/salehin/logEventReport/logEventReport.htm?cid=1

    #24879

    You cannot completely remove this parameter. You could just try to embed it in the path.

    Actually a configuration like this should work:

    <url-mapping>
      <pattern value=”/logevents/#{cid}/”/>
      <view-id value=”/logEventReport/logEventReport.htm”/>
    </url-mapping>
    
Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

Comments are closed.