![](https://i0.wp.com/images.pexels.com/photos/1154775/pexels-photo-1154775.jpeg?w=1200&ssl=1)
Let’s assume that we want to redirect all traffic coming from myweb.com to www.myweb.com.
First, we need to create our domain named myweb.com within Proxy Host:
![](https://i0.wp.com/devcodelight.com/wp-content/uploads/2023/11/imagen-3.png?resize=364%2C124&ssl=1)
Now, open it and go to the Advanced section:
![](https://i0.wp.com/devcodelight.com/wp-content/uploads/2023/11/imagen-4.png?resize=384%2C57&ssl=1)
And add the following within Custom Nginx Configuration:
![](https://i0.wp.com/devcodelight.com/wp-content/uploads/2023/11/imagen-5.png?resize=532%2C55&ssl=1)
The following configuration:
location / { return 301 https://www.myweb.com$request_uri; }
This way, it will perform a 301 redirection to www.myweb.com and also concatenate the rest of the path in the URL.
![](https://i0.wp.com/devcodelight.com/wp-content/uploads/2023/07/cropped-light_logo-5.png?resize=100%2C100&ssl=1)