Forum Discussion
2 Replies
Sort By
- Stanislas_Piro2Cumulonimbus
try this:
when HTTP_REQUEST { if { [HTTP::host] equals "kazeem.networkershome.com" && [HTTP::uri] equals "/"} { HTTP::redirect "https://kazeem.networkershome.com/ux/smart-it"; } }
- IheartF5_45022Nacreous
Just an FYI - the code above will perform an 302 (Conditional) redirect. A 301 (permanent) redirect is more appropriate in this situation, and will increase SEO rankings.
HTTP::respond 301 noserver Location "https://kazeem.networkershome.com/ux/smart-it"
If you don't want browsers to cache it you can add a Cache-Control directive;
HTTP::respond 301 noserver Location "https://kazeem.networkershome.com/ux/smart-it" Cache-Control "max-age=7200"