Forum Discussion

aniaz_161592's avatar
aniaz_161592
Icon for Nimbostratus rankNimbostratus
Jun 21, 2014

In URL hiding URI

Problem:

 

I have one URL mentioned below:

 

https://www.moveomoney.com/cholder/

 

Requirement:

 

URL Should be https://www.moveomoney.com (Redirecting to above one)

 

I want same page will open using above URL, kindly help me to sort out this issue, I think irule will help in this regards please suggest and provide solution. Moreover we have many domains in which cholder as a URI printed so need solution for above without disturbing that domains. Thanks !!

 

4 Replies

  • Hi!

    Do you want users surfing to https://www.moveomoney.com to be redirected to https://www.moveomoney.com/cholder/ with a 301/302 redirect, or do you want to display https://www.moveomoney.com/cholder/ without a redirect?

    If you want the redirect you can try this one:

    when HTTP_REQUEST {
        if { [HTTP::uri] eq "/" } {
            HTTP::respond 301 Location "https://www.moveomoney.com/cholder/"
        }
    }
    

    If you want to display the cholder without a redirect you can try this one:

    when HTTP_REQUEST {
        if { [HTTP::uri] eq "/" } {
            HTTP::uri "/cholder/"
        }
    }
    

    Please note that you need an SSL client profile and an HTTP profile in order for this to work.

    Hope I understood you correctly.

    /Patrik

  • Thanks Patrik for the reply let me explain u as I think u cant understand my requirement.

     

    I don't want cholder at the end of URL if now open www.moveomoney.com it will redirect you to https://www.moveomoney.com/cholder/ which I don't want I want same page will open but url will be www.moveomoney.com without cholder at the end. I hope u under stand now. Thanks

     

  • I don't want cholder at the end of URL if now open www.moveomoney.com it will redirect you to https://www.moveomoney.com/cholder/ which I don't want I want same page will open but url will be www.moveomoney.com without cholder at the end

     

    it is the 2nd example Patrick suggested.

     

  • I'm not sure a redirect will work for you because the server response to https://www.moveomoney.com is telling the client to load the url=https://www.moveomoney.com/cholder/ so a redirect back to https://www.moveomoney.com/ would cause a loop! If you don't want /cholder/ to be seen in the uri

     

    HTTP/1.1 200 OK Date: Mon, 23 Jun 2014 13:54:11 GMT Last-Modified: Mon, 23 Jun 2014 09:09:21 GMT ETag: "90138-e5-4fc7d32d9c6dd" Accept-Ranges: bytes Content-Length: 229 Keep-Alive: timeout=5, max=100 Connection: Keep-Alive Content-Type: text/html

     

     

    All the content on your page is using that path to load the page . GET /cholder/images/themes/moveo/login.css HTTP/1.1 Accept: text/css Referer: https://www.moveomoney.com/cholder/ Accept-Language: en-US User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0) Accept-Encoding: gzip, deflate Host: www.moveomoney.com Connection: Keep-Alive