Rewriting a link on nginx

view story

http://serverfault.com – After i tried to rewriting the url from the site config when i acsess the page its doens't showing the page its always download the page this is the config that i tried - location / { root /home/bil/public_html/domain.net/public/; index index.php index.html; location /like/ { rewrite ^/like/(.*) /check_register.php?key=$1 break; return 403; } } How can (HowTos)