How to redirect a subdomain?

chris10121

Verified User
Joined
Feb 17, 2008
Messages
31
If I have a subdomain titled "http://mail.subdomain.com" and say I want to redirect it to "http://domain.com/squirrelmail/src/login.php", how would I create a redirect in directadmin?

cPanel can do it easily with a few clicks, how do I do this for DirectAdmin?

I've been using "<meta HTTP-EQUIV="REFRESH" content="0; url=http://domain.com>" as a redirect but it's a pain to have to do this every time and it seems kind of shotty to have to tell customers "You have to create your own redirect page". It's kind of embarrassing when cpanel can do this through the control panel.

And yes, I searched the forums, and all I could find was people saying to edit the .htaccess file. So if DA doesn't support subdomain redirects, anyone have any idea when they'll release an update that adds this feature?
 
Last edited:
You'll have to ask DirectAdmin staff if/when they're going to release a feature; I don't think any of us have crystal balls. Theres a section of the forum for suggestions :).

And yes, editing the .htaccess file is the way to go. If you want to offer your clients a way to do it through the control panel you might want to write a plugin to edit their .htaccess file.

Jeff
 
Back
Top