Forum Moderators: open

Message Too Old, No Replies

301 Redirect in IIS needs to keep domain

         

TheSeoGuy

4:13 pm on Mar 23, 2010 (gmt 0)

10+ Year Member



I set up a 301 redirect in IIS 6 doing the following:

In the home directory, I chose the following options.
A redirection to a URL
Redirect to: [ACTUAL URL]
With the following two options checked.
[x] The exact URL entered above
[x] A permanent redirection for this resource

When I go to the domain (example.com), I get redirected to the [ACTUAL URL] as desired, but the URL in my browser changes to the [ACTUAL URL]... We would like the domain to stay (example.com)

Is this possible?

Thanks in advance.

Trav

4:18 pm on Mar 23, 2010 (gmt 0)

10+ Year Member



Are you sure you need a redirect, as opposed to a rewrite?. Haven't set up a rewrite via IIS, but can easily be done with htaccess

marcel

4:30 pm on Mar 23, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



As Trav says, you need a rewrite which isn't possible with the standard IIS6 console. The redirection you have set up actually sends (redirects) the requesting agent to the new URL as opposed to rewriting the URL.

One option is to use ISAPI_Rewrite to achieve what you need.