Welcome to WebmasterWorld Guest from 23.20.101.42

Forum Moderators: phranque

Message Too Old, No Replies

Redirect

     
6:00 pm on May 13, 2009 (gmt 0)

New User

5+ Year Member

joined:May 1, 2009
posts: 31
votes: 0


I have 2 index pages, both of which are in google. How do I redirect from index.asp to index.html?
2:53 am on May 14, 2009 (gmt 0)

Administrator from JP 

WebmasterWorld Administrator bill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Oct 12, 2000
posts:14767
votes: 81


Use a 301 redirect [google.com] to point one to the other.
3:14 am on May 14, 2009 (gmt 0)

Senior Member

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

joined:Mar 31, 2002
posts:25430
votes: 0


I would recommend redirecting both of those index URLs to "/" and linking only to "/" when you refer to your "home page" in links on your site. Shorter, prettier, and standard.

Jim

12:08 pm on May 14, 2009 (gmt 0)

New User

5+ Year Member

joined:May 1, 2009
posts: 31
votes: 0


It isn't my index page. It is a few pages on my site. There are htm versions and asp versions. I want the asp pages to point to the htm pages.
7:43 pm on May 14, 2009 (gmt 0)

Preferred Member

5+ Year Member

joined:Aug 25, 2007
posts:531
votes: 0


Untested:

Rewriterule (.*)\.asp$ http://www.example.com/$1.htm [L,R=301]

[edited by: CWebguy at 7:44 pm (utc) on May 14, 2009]

[edited by: phranque at 4:39 am (utc) on May 15, 2009]
[edit reason] exemplified url [/edit]

7:48 pm on May 14, 2009 (gmt 0)

Preferred Member

5+ Year Member

joined:Aug 25, 2007
posts:531
votes: 0


Sorry, just realized if you are doing .asp this probably won't work (Windows)
12:08 am on May 16, 2009 (gmt 0)

Administrator from JP 

WebmasterWorld Administrator bill is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Oct 12, 2000
posts:14767
votes: 81


It could work if he had ISAPI_Rewrite installed on the Windows server, but that's a 3rd party app and it's not free.