Question
How can I do a 301 simple URL redirect?
Hi community!
I need to redirect some URL to root, because we redesign all entire site to new urls and now its going to 404 page, and I dont know how but Im having problems with that.
url : /contacto.htm to domain.
I include this command in server block
server {
location = /contacto.htm {
return 301 http://www.domain.es
}
}
Its good or bad? I dont know… I hope that you can help me. I need to do 12 redirects…
Kind regards!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×