Forum Discussion

CS_215's avatar
CS_215
Icon for Nimbostratus rankNimbostratus
Feb 12, 2010

ReWrite URL again

Need to have the following behavior

 

 

person enters in url

 

http://www.server.com/short/file.htm

 

 

F5 pulls html code from

 

http://www.server.com/abnsg2226635/short/file.htm

 

 

and shows url in browser as

 

http://www.server.com/short/file.htm

 

 

**file.htm would change of course

 

 

Thanks

1 Reply

  • HI CS,

     

    To paraphrase, you want to have the client enter

     

    http://www.server/short/file.htm but w/o changing the URL go to content on he following URL http://www.server.com/abnsg2226635/short/file.htm, where film.htm will be dynamic?

     

     

    Does that look about right?

     

     

    If that is the case then the untested code below will look something like

     

     

      
      when HTTP_REQUEST {  
        if {([HTTP::Host] eq "www.server.com") and ([HTTP::uri] starts_with "/short/") }  {  
          [HTTP::uri /abnsg2226635/[HTTP::uri]  
           }  
      }  
      

     

     

    I hope this helps

     

     

    Bhattman