Home › Forums › Other › Nginx Redirect › Reply To: Nginx Redirect
October 10, 2014 at 8:04 pm
#186007
Participant
Nginx config file domain.net.conf
in /etc/nginx/sites-available
, don’t forget to system link it to sites-enabled
folder and reboot Nginx.
server {
listen 80;
server_name domain.net;
root /folder/on/the/server/www;
location / {
rewrite ^(.*)$ http://www.domain.me/$1 redirect;
}
location ~ /\.ht {
deny all;
}
}