Link to home
Start Free TrialLog in
Avatar of tommyrihu
tommyrihuFlag for Sweden

asked on

Howto redirect to another folder in Apache

Hello,

As an example
In the DNS record there is one domain that is called "doman.nu" and points to 80.55.122.22. doman.nu has a standard homepage.

There is also one "min.doman.nu" and points to the same IP 80.55.122.22. this one has a different homepage and are in another folder.

When I go to min.doman.nu I want apache to look up http://min.doman.nu/ and redirect me to another folder that is called test.

I thought that it was like this:

<VirtualHost 80.55.122.22>
ServerName min.doman.nu
ServerAlias min.doman.nu/test/
Redirect permanent / http://min.doman.nu/test
</VirtualHost>

What more do i have to do? its only one homepage on that webserver

Its an old FreeBSD with apache version 1.6 or something
do i have to activate virtual host in someway?

Thanks
ASKER CERTIFIED SOLUTION
Avatar of caterham_www
caterham_www
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of tommyrihu

ASKER

Thank you very much for your good explanation.