how can i do multiple subdomain redirection using control panel


Can anyone help me in this iisue …i face …i use as control panel for using wordpress sites …

but can’t find how can i do multiple sub domain redirection suing digitalocen +

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 to

like this i have mutiple sudomain …

can you tell me how this can be done …any guide very helpful

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.


You can use the instructions here multiple times in the same .htaccess file:

For example, here’s how you’d redirect two different subdomains:

RewriteCond %{HTTP_HOST}
RewriteRule (.*) [R=302,L]

RewriteCond %{HTTP_HOST}
RewriteRule (.*) [R=302,L]

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.