2

What should be the correct configuration , if i want to redirect any request for www.mydomain.com to www.mydomain.com/page.

I tried couple of options but always ended up in an redirect loop.

1
  • You want request to www.mydomain.com/any/url/ to be redirected to www.mydomain.com/page?
    – Alexey Ten
    Commented Apr 28, 2014 at 11:39

1 Answer 1

2

This should do the trick:

rewrite ^/$ http://www.mydomain.com/page permanent;

If this was what you were using and it looped then there must be a redirect rule in place for /page.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.