We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
What is the cleanest way to add a list of redirects in Vesta CP ?
What is the cleanest way to add a list of redirects in Vesta CP ?
Hi,
I moved my site from Wordpress to Mediawiki and I have several 301 redirects to make.
Basically :
I also merged another old site in this one so that I also have this type of redirect to make :
The old domain was in another server and, since I have to close the old sever, I had in the idea to redirect the old domaine on the new sever IP and to add the old domain as an alias of the new domain in Vesta.
What would be the cleanest way to implement these 3 points in VestaCP in your opinion ?
Thanks
I moved my site from Wordpress to Mediawiki and I have several 301 redirects to make.
Basically :
Code: Select all
Redirect permanent 12345/old-wordpress-permalink wiki/new_article_title
Code: Select all
Redirect permanent https://myolddomain.com/12345/old-wordpress-permalink2 https://mynewdomain.com/wiki/new_article_title2
What would be the cleanest way to implement these 3 points in VestaCP in your opinion ?
Thanks
Re: What is the cleanest way to add a list of redirects in Vesta CP ?
use nginx rewrite
add an additional file /home/user/conf/nginx.you_site.conf
add an additional file /home/user/conf/nginx.you_site.conf
Code: Select all
location ~ /12345/old-wordpress-permalink2 {rewrite ^ https://mynewdomain.com/wiki/new_article_title2 last;}