How can I send a user to a new location only if the user does not have a URI? I try to follow, but it does not work ... it always sends me to / newlocation
rewrite ^/$ http://www.domain.com/newlocation permanent; rewrite ^/(.*)$ http://www.domain.com/$1 permanent;
So basically, I need:
If the user writes in the browser www.domain.org, he goes to the site www.domain.com/newlocation. If the user writes in the browser www.domain.org/something, he sends to the site www.domain.com/something
Thanks!
source share