Tell me more ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I have already ask this question in Server Fault However, asking here also in order to get quick reply.

I have a load balancer F5 Big ip for my website. Currently, I am having 302 redirect in place; however, I wanted to apply 301 but dont know how.

For example:

My website (abc.com) when typed 302 redirects to abc.com/index and when typed www.abc.com 302 redirects www.abc.com/index. I wanted to have a rule which will help me in

Below is the code that my tech person is trying:

Redirect to WWW

when HTTP_REQUEST { if { [HTTP::host] equals "abc.com" or [HTTP::host] equals "abc.co.in" or [HTTP::host] equals "www.abc.co.in" } { if {!( [HTTP::path] equals "/")} { HTTP::respond 301 Location "http://www.abc.com[HTTP::path]" } } }

Redirect POST

when HTTP_REQUEST { if { [HTTP::method] equals "POST" } { persist source_addr pool shop_shop_vr4_http } }

Redirect-VR4 HOMEPAGE

when HTTP_REQUEST { if { [HTTP::path] equals "/" or [HTTP::path] starts_with "/target/" or [HTTP::path] starts_with "/logs/" or [HTTP::path] starts_with "/config/" } { HTTP::redirect "http://[HTTP::host]/index.jsp.vr" } }
share|improve this question
I do not think it's a good idea to ask it every where just because its really urgent ... – j0k Aug 20 '12 at 7:17
I've closed it here, because serverfault is the best place for it. If it was just about .htaccess rules then I'd leave it here, but as it's about configuring a load balancer I think that's serverfault territory. – paulmorriss Aug 20 '12 at 8:49

closed as off topic by paulmorriss Aug 20 '12 at 8:48

Questions on Webmasters Stack Exchange are expected to relate to webmastering within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.