Forum Moderators: buckworks & webwork

Message Too Old, No Replies

Redirecting /index.aspx to .com/

easiest way to redirect

         

whizkiddo

6:50 am on Nov 17, 2005 (gmt 0)

10+ Year Member



Hi,

My site has different page ranks for the same page

i.e.:

http://www.example.com

http://example.com

http://www.example.com/index.aspx

Can some one please tell me the easiest way to redirect the last 2 to http://www.example.com ; I have seen people do it but couldnt figure it out. I am sure this will cause the PR to increase since the interior pages etc have good PRS and the primary PR is getting distributed between these 3, certainly something that i do not want.

[edited by: Webwork at 7:35 pm (utc) on Nov. 17, 2005]
[edit reason] We only use Example.com when discusssing domain issues, per Charter [/edit]

jonrichd

7:10 pm on Nov 17, 2005 (gmt 0)

10+ Year Member



To solve problem #2, you need to set up a separate website on your server for xyz.com (without the www). Then, open its properties, and on the home directory tab, specify that the content comes from a redirection to an URL. Then specify the www.example.com as the destination URL, and select to make the redirection permanent.

The only idea I can think of for the index.aspx is to copy the file to default.aspx, and then fix IIS so it looks for default.aspx before index.aspx. That will send requests to xyz.com/ to the default.aspx page.

Then go to the properties for index.aspx and on the home directory tab, select redirection to URL, and pick www.xyz.com, permanent.

Make sure all your internal links to your home page point to www.xyz.com, not a filename.