Forum Discussion
alinayesina_102
Nimbostratus
Mar 13, 2009Responce URI Masking/Hiding
We would like to consult on the possibility of performing a URL rewrite with the use of an iRule for domain.com. it’s not a good practice for our homepage to show as http://www.domain.com/home/default...
gGnome_32510
Nimbostratus
Mar 26, 2009My apologies for hijacking this thread, but I would greatly appreciate some help refining the iRule above:
when HTTP_REQUEST {
Check if requested URI is / and requested host is www.example.com
if {[HTTP::uri] eq "/" and [string tolower [HTTP::host]] eq "www.example.com"
Rewrite URI to /home/default.htm HTTP::uri "/home/default.htm" }
}
I have implemented this and while it works ok, I would like to ammend it so that:
1) a visitor can receive any content under /home (ie /home/anydir and /home/anyotherdir/anysubdir) without the path becoming visible in the browser, and
2)further that the visitor not be allowed to reach www.example.com/anywhere_other_than_/home.
It seems like it should be easy enough to do, but nothing I have tried so far has worked.
Thanks much,
Gregg
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects