I have been searching on how to do this for about an hour so I am sorry if this is a repetitive question.
I have no experience with how to do a redirect with a .httaccess but have a friend who wants just their index page www.example.com redirected to www.subdomain.anotherexample.com (a different site with a subdomain).
They want to link this subdomain to other pages of their exmaple.com site as well (kind of confusing but there is a reason for it).
So I only need the index page forwarded and not any other pages of the site.
Can anyone help me with this or show me the correct place to go? Thanks!
is the simplest method, although in this case, you are redirecting to a sub-subdomain. That is, "www" is a subdomain of "otherexample.com," and that's a fairly ugly URL... If there's no really good reason for it, I'd suggest redirecting to "subdomain.other_example.com" instead. Note that in "www.example.com" the "www" is a subdomain of "example.com," which is the domain. There is nothing special about "www" -- It is just a subdomain like any other.