Forum Discussion
Paul_Jenkins_12
Nimbostratus
Nov 19, 2013Lots of specific URLs to 301 redirect - best approach?
I have a lot of specific URLs that are currently returning 404s that I need to 301 redirect to specific new locations (about 300+). The data is in an excel file with URL404 and URLNew as the columns...
What_Lies_Bene1
Cirrostratus
Nov 19, 2013This should be really easy, something like this;
when HTTP_REQUEST {
Is this one of the 'bad' URIs?
if { [class match [string tolower [HTTP::uri]] equals dg_name_of_choice] } {
It is, let's redirect
HTTP::redirect [class match -value -- [string tolower [HTTP::uri]] equals dg_name_of_choice] }
}
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