Search Engine Watch Forums  - Search Engine Watch (#SEW)
Search Engine Watch
SEO News

 

  #1  
Old 04-30-2009
oliflorence oliflorence is offline
Member
 
Join Date: Sep 2005
Location: Ireland
Posts: 60
oliflorence is on a distinguished road
Code for a 301 redirect from a plain .html page?

hi,
I have done 301 redirects from ASP pages before but never from a good old plain .html file.
i am wondering what I need to add to the page to redirect to a new location. I read on the net than I can do it from IIS, unfortunatly I am on a shared server so this is out, i also read i can upload a htaccess file but if so what is the format so i can redirect several individual pages.
many thanks
Reply With Quote
  #2  
Old 05-01-2009
beu's Avatar
beu beu is offline
 
Join Date: Sep 2004
Location: Atlanta, GA U.S.A.
Posts: 2,204
beu is a name known to allbeu is a name known to allbeu is a name known to allbeu is a name known to allbeu is a name known to allbeu is a name known to all
Re: Code for a 301 redirect from a plain .html page?

Depends on a few things, see:
http://sebastians-pamphlets.com/the-...s-301-302-307/
__________________
@beussery
Reply With Quote
  #3  
Old 05-02-2009
Webmaster T Webmaster T is offline
Member
 
Join Date: Jun 2004
Posts: 64
Webmaster T is a jewel in the roughWebmaster T is a jewel in the roughWebmaster T is a jewel in the rough
Re: Code for a 301 redirect from a plain .html page?

Ummm.. good luck in IIS I have to add code to the page to get a clean 404 or 301. M$ seem to think the protocols are open to interpretation. If it's an .htm page and you don't have access to the asp parsing engine then there is little you can do. If you had access to the parser you could configure the server to parse .htm as .asp and add the code at the page level. Otherwise with newer IIS you basically send bad header responses to SE's. For instance if you set up a default 404 it will always return 200 code which is exactly opposite of the intent of the page.
Reply With Quote
  #4  
Old 05-12-2009
AussieWebmaster's Avatar
AussieWebmaster AussieWebmaster is offline
Forums Editor, SearchEngineWatch
 
Join Date: Jun 2004
Location: NYC
Posts: 8,141
AussieWebmaster has a brilliant futureAussieWebmaster has a brilliant futureAussieWebmaster has a brilliant futureAussieWebmaster has a brilliant futureAussieWebmaster has a brilliant futureAussieWebmaster has a brilliant futureAussieWebmaster has a brilliant futureAussieWebmaster has a brilliant futureAussieWebmaster has a brilliant futureAussieWebmaster has a brilliant futureAussieWebmaster has a brilliant future
Re: Code for a 301 redirect from a plain .html page?

Yeah IIS has always been a problem - I would never host with Windows without full access
__________________
Make USA Home - immigrating to the US - the project for 2011
Reply With Quote
  #5  
Old 05-18-2009
rapidvectorseo rapidvectorseo is offline
Member
 
Join Date: Jul 2008
Posts: 106
rapidvectorseo will become famous soon enoughrapidvectorseo will become famous soon enough
Re: Code for a 301 redirect from a plain .html page?

Quote:
Originally Posted by beu View Post
This is great article with good info.
I've bookmarked the page.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
New Google Page Code dannyd Measurement Tools 0 02-07-2008 11:17 AM
Recently enhanced old page dissapears from Google & Yahoo SpiritofLight Search Engine Optimization 0 02-05-2008 02:42 PM
<noscript> position on page code - best practice : just erase it? gugo Google Web Search 1 02-27-2007 05:11 PM
Will link exchange page lower overall PR? sew2002 Google Web Search 22 05-27-2005 06:18 AM
37 PR10 Pages Drop to PR9's bobmutch Google Web Search 28 10-28-2004 12:14 AM


All times are GMT -4. The time now is 08:54 PM.