This is my live example of permanent (301) redirection to external URL with Nginx, all incoming requests will be redirected to a Facebook group.
cat /etc/nginx/sites-enabled/domain.de
1 2 3 4 5 6 7 8 9 10 | server { server_name domain.de www.domain.de; listen [::]:80; server_tokens off; location / { rewrite ^ http://www.facebook.com/groups/399191/ permanent; } } |
Leave a Reply