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...
hoolio
Cirrostratus
Mar 16, 2009You'd probably want to add a check so that you only rewrite requests to a URI of / to /home/default.htm:
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"
}
}
Aaron