By Full2design
Hi
Can anyone help me in this iisue …i face …i use http://serverpilot.io as control panel for using wordpress sites …
but can’t find how can i do multiple sub domain redirection suing digitalocen + http://serverpilot.io …
i try to use .htaccess to do this but only working one subdomain redirection …mutiple sundomain redirection is not working …
for example i need to redirect like this
sub.yourdomain.com to yourdomain.com/somepage
like this i have mutiple sudomain …
can you tell me how this can be done …any guide very helpful
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello, Don’t understand what exactly you want. But where do you have your domain registered and where do you have it managed? If you got the nameservers at digitalocean, you can manage all records inside the DNS management of DO.
Hi,
You can use the instructions here multiple times in the same .htaccess file:
https://serverpilot.io/community/articles/how-to-redirect-to-a-different-domain.html
For example, here’s how you’d redirect two different subdomains:
RewriteCond %{HTTP_HOST} =foo.example.com
RewriteRule (.*) http://example.com/foo [R=302,L]
RewriteCond %{HTTP_HOST} =bar.example.com
RewriteRule (.*) http://example.com/bar [R=302,L]
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.