Web Hosting Talk







View Full Version : Making subdomain redirects in DirectAdmin


kenfused
07-04-2005, 01:01 PM
Hello,

In my old Ensim server, I make a folder "subdomain.mydomain.com", then placed an .htaccess file with a redirect statment in it to direct it to a different page.

After I create a subdomain in DirectAdmin, how do I redirect it to a different page?

When I put an .htaccess in "test.mydomain.com" with

Redirect / http://www.news.com

It directs to:

http://www.news.com~username/test
and I get an error!

kenfused
07-04-2005, 01:14 PM
I tried making a subdomain in directadmin, which according to the instructions should route to

www.mydomain.com/test

Then I used a Redirect in DirectAdmin, routing traffic from local "/test" to "http://news.com", but then I get a "FORBIDDEN" error. I guess this is not going to work this way...

For now, since my domain has not resolved yet, It goes to:

http://216.184.231.76/~username/test

Is that the problem?