Welcome to WebmasterWorld Guest from

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Redirect index page

Need help with just redirecting one page

5:32 pm on Jun 5, 2006 (gmt 0)

Full Member

10+ Year Member

joined:Nov 2, 2005
votes: 0

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!

7:36 pm on June 5, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 31, 2002
votes: 0

[url=http://httpd.apache.org/docs/1.3/mod/mod_alias.html#redirectmatch]RedirectMatch[/url] 301 ^/$ http://www.subdomain.other_example.com

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.


8:47 pm on June 5, 2006 (gmt 0)

Full Member

10+ Year Member

joined:Nov 2, 2005
votes: 0

it does not need the www so thanks for the information. This helps me a ton. Thanks!

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members