Forum Discussion
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
- aniaz_161592
Nimbostratus
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
- nitass
Employee
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.
- afedden_1985
Cirrus
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
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com