How to use nginx to redirect one page request to a different page -


i want redirect http://example.com/balcony-covers/ to
http://example.com/balcony-screens/ permanently. how can in nginx.

use nginx.conf file.

put

location /balcony-covers/ {     return 301 $scheme://$host/balcony-screens/; } 

in server block


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -