Welcome to WebmasterWorld Guest from 54.162.240.235

Forum Moderators: phranque

Message Too Old, No Replies

Redirect

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

5+ Year Member



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)

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



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

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



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)

5+ Year Member



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)

5+ Year Member



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)

5+ Year Member



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

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



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.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month