Forum Moderators: buckworks & webwork

Message Too Old, No Replies

301 redirection for domain

         

theteche

7:35 am on Mar 23, 2009 (gmt 0)

10+ Year Member



Hi,

I have a .Net website. for example- www.Example.com

My problem is,if I type "Example.com" then the address bar shows the url as "http://www.example.com/index.aspx"

but if I type "www.Example.com" ,the address bar shows the url as "http://www.example.com"

I don't want to show the file name and its extension in the home page.

How to do that?

Thanks in advance.

raja

[edited by: Webwork at 12:18 pm (utc) on Mar. 23, 2009]
[edit reason] Per Domain Forum Charter - example domains are exemplified by using Example.com [/edit]

g1smd

9:02 am on Mar 23, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



You have a redirect from example.com to www.example.com/index.aspx

Change the redirect so that the filename is not included.

Additionally, add another redirect such that if the index filename is included in any request you redirect to strip it out. That redirect must also force the www for those requests at the same time, and make sure that it goes before your general non-www to www redirect.

semgold

7:15 am on Mar 24, 2009 (gmt 0)

10+ Year Member



This is important for not just vanity but also SE reasons. You don't want to spilt link juice among the different url strings.

stephen186

8:49 am on Mar 26, 2009 (gmt 0)

10+ Year Member



Do it quickly.

Even i used to have same problem,but got it fixed with 301 redirection. Please note that search engines do treat domain with and without www as seperate domains.

welljy

7:47 am on Apr 24, 2009 (gmt 0)

10+ Year Member



have a redirect from example.com to www.example.com/index.aspx

engine friend

7:58 am on Apr 24, 2009 (gmt 0)

10+ Year Member



I am sure in this case site would be indexed in Google along with www however it is not necessary to put 301 from non www to www, it can also go otherwise depending on how you want search engines to index your site. You can also set the priority in google webmasters tool.