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.
Sub domain - Redirection
-
- Posts: 7
- Joined: Wed Mar 12, 2014 9:16 am
Sub domain - Redirection
Hello
I am new to VestaCP and i love it, i want to do something like this for a sub domain
I have blog.domain.com
it should redirect to
blog.wordpress.com
I tried all possible ways in the panel for doing this but its not working, how to do this in VestaCP or in any other method?
I am new to VestaCP and i love it, i want to do something like this for a sub domain
I have blog.domain.com
it should redirect to
blog.wordpress.com
I tried all possible ways in the panel for doing this but its not working, how to do this in VestaCP or in any other method?
Re: Sub domain - Redirection
Hi,
you can do it in the .htaccess file
1. in the blog.domain.com main directory create this file
(the dot at the beginning of compulsory)
in this file add:
2. all this subdomains must exist in the panel
you can do it in the .htaccess file
1. in the blog.domain.com main directory create this file
Code: Select all
.htaccess
in this file add:
Code: Select all
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://blog.wordpress.com/$1 [R=301,L]
-
- Posts: 7
- Joined: Wed Mar 12, 2014 9:16 am
Re: Sub domain - Redirection
Hello
I tried, added the same code ( before this also i tried several times with the .htaccess file) but its not working
I had created the sub domain www.blog.domain.com and then via ftp added this file in the public_html folder and tried in the browser but its not working
I tried, added the same code ( before this also i tried several times with the .htaccess file) but its not working
I had created the sub domain www.blog.domain.com and then via ftp added this file in the public_html folder and tried in the browser but its not working
-
- Posts: 10
- Joined: Sun Sep 07, 2014 5:57 am
Re: Sub domain - Redirection
I can confirm this works perfectly fine. you may have to wait for the domain to propagate.when adding a new domain add it like a subdomain for example sub.domain.com and it will create a new web folder for it... it should automatically configure your dns for you as well.. as long as your using the same ip address as the original domain.com no need to touch DNS records
-
- Posts: 7
- Joined: Wed Mar 12, 2014 9:16 am
Re: Sub domain - Redirection
Thank you very much its working fine