Linux Nginx - how to redirect domain in virtualhost (permanent redirect 301)
Hi,
I would just need to simply redirect the domain to a new address on the nginx web server on linux using redirection using HTTP code 301 - permanent redirection.
Thank you
Hi,
so I did the redirect with http code 301 (from app.cloud.up4.cz to cloud.up4.cz) like this:
I would just need to simply redirect the domain to a new address on the nginx web server on linux using redirection using HTTP code 301 - permanent redirection.
Thank you
REPLY
Hi,
so I did the redirect with http code 301 (from app.cloud.up4.cz to cloud.up4.cz) like this:
server {
listen 80;
root /var/www/web/www;
index index.php index.html;
server_name app.cloud.up4.cz;
return 301 $scheme://cloud.up4.cz$request_uri;