Forum Discussion
DaveC_53879
Jul 26, 2011Nimbostratus
Return a 301 instead of 302
I need my redirects to return a 301 instead if a 302. The Web team is unable to track the rdirected requests because they return a 302. How can I change the rule below to return a 301?
whe...
hooleylist
Jul 27, 2011Cirrostratus
I don't think hostnames starting with a hyphen are valid. For example, I assumed for "-peoples.com" that you'd want to match anything ending with -peoples, so I had it as "*-peoples.com".
If you don't need a wildcard for one entry, you can just remove the asterisk. If you don't need wildcards for any hostname you can remove all of the asterisks and the -glob flag from the switch statement.
Aaron
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