Welcome to WebmasterWorld Guest from 107.20.110.201

Forum Moderators: mademetop

Message Too Old, No Replies

Redirecting a domain to a sub-page

What's the best way to do it on IIS?

     

erthworm

6:52 pm on Jul 2, 2003 (gmt 0)

10+ Year Member



A client of mine has two domain names that they want to direct to subdirectories of their primary domain. Currently, they have an ASP page with a response.redirect directive that redirects the page based on what domain the user used to get there.

How will the search engines view this redirect, and is there a better way to achieve the same result? I know there's a lot on WW about redirects, so if someone can point me the right direction, that might be all I need.

webdevsf

7:39 pm on Jul 2, 2003 (gmt 0)

10+ Year Member



The search engines will most likely just follow the link. You might lose a little PR, but it won't be a big deal.

However, if you want it to be "seemless" - ie, the url only has:

foo.domain.com instead of domain.com/foo

you should consider using a URL Rewriting tool. That essentially does what your redirect does, without actually forcing a redirect. Ie, the request comes in as

foo.domain.com

ASP sees it as www.domain.com/foo

Try ISAPIRewrite, etc. THere are some free tools, and some free code to write your own regexps to do this if you want as well. just google to "url rewrite iis".

erthworm

8:20 pm on Jul 2, 2003 (gmt 0)

10+ Year Member



thanks webdevsf. i'll give it a shot.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month