homepage Welcome to WebmasterWorld Guest from 23.22.173.58
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / WebmasterWorld / Webmaster General
Forum Library, Charter, Moderators: phranque

Webmaster General Forum

    
Redirect
aroon

5+ Year Member



 
Msg#: 3912771 posted 6:00 pm on May 13, 2009 (gmt 0)

I have 2 index pages, both of which are in google. How do I redirect from index.asp to index.html?

 

bill

WebmasterWorld Administrator bill us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3912771 posted 2:53 am on May 14, 2009 (gmt 0)

Use a 301 redirect [google.com] to point one to the other.

jdMorgan

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



 
Msg#: 3912771 posted 3:14 am on May 14, 2009 (gmt 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

aroon

5+ Year Member



 
Msg#: 3912771 posted 12:08 pm on May 14, 2009 (gmt 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.

CWebguy

5+ Year Member



 
Msg#: 3912771 posted 7:43 pm on May 14, 2009 (gmt 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]

CWebguy

5+ Year Member



 
Msg#: 3912771 posted 7:48 pm on May 14, 2009 (gmt 0)

Sorry, just realized if you are doing .asp this probably won't work (Windows)

bill

WebmasterWorld Administrator bill us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3912771 posted 12:08 am on May 16, 2009 (gmt 0)

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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / Webmaster General
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved