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.

migrated from superuser.com Apr 27 '14 at 6:34

This question came from our site for computer enthusiasts and power users.

  • You want request to www.mydomain.com/any/url/ to be redirected to www.mydomain.com/page? – Alexey Ten Apr 28 '14 at 11:39
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, privacy policy and cookie policy