Falcubar
asked on
Redirect to different folder, depening on domain name?
Hello all,
Im not sure what im really asking for but. If i have a webserver with ip address: 100.100.100.100(exmaple) and on this i want multple sites hosted. Depending on the domain name can i redirect it to a different folder? or say "look in this folder, for this domain name". If you know what i mean? I think there may be some kind of .htaccess things i can do?
i haz..
http://www.example1.com -> 100.100.100.100
http://www.example2.com -> 100.100.100.100
http://www.example3.com -> 100.100.100.100
All pointing to the same thing, but 3 totally different websites all located in different folders, how can it be pointed to a specific folder?
I hope i make sense:)
Thanks
Steve
edit: the above obviously is an example, 3 is not an exact figure im just looking for a way to do the redirect or point to this folder based on the URL, if even possible
Im not sure what im really asking for but. If i have a webserver with ip address: 100.100.100.100(exmaple) and on this i want multple sites hosted. Depending on the domain name can i redirect it to a different folder? or say "look in this folder, for this domain name". If you know what i mean? I think there may be some kind of .htaccess things i can do?
i haz..
http://www.example1.com -> 100.100.100.100
http://www.example2.com -> 100.100.100.100
http://www.example3.com -> 100.100.100.100
All pointing to the same thing, but 3 totally different websites all located in different folders, how can it be pointed to a specific folder?
I hope i make sense:)
Thanks
Steve
edit: the above obviously is an example, 3 is not an exact figure im just looking for a way to do the redirect or point to this folder based on the URL, if even possible
Yes. I only have experience with IIS, but it is definitiely possible with IIS, and should be fine with the others.
ASKER
Do you know how to do with .htaccess? codes?
Sorry, I missed that part of the post.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.