Forum Discussion
Brandon_11574
Mar 24, 2011Nimbostratus
Rewrite Rule
I am needing to do a URL Rewrite where a visitor requests http://domain.com/newFolder/ but they actually see the content from http://domain.com/oldFolder/
So when they request http://domain....
Michael_Yates
Mar 24, 2011Nimbostratus
Here is another option that is a little lighter:
This should change the path on the request going to the server and mask it in the client browser.
when HTTP_REQUEST {
switch -glob [ string tolower [HTTP::uri] ] {
"/oldFolder/*" { HTTP::uri [ string map {"oldFolder" "newFolder"} [HTTP::uri] ] }
}
}
Let me know if you have any problems wth it.
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