|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
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 |
|
#3
|
|||
|
|||
|
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.
|
|
#4
|
||||
|
||||
|
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 |
|
#5
|
|||
|
|||
|
Re: Code for a 301 redirect from a plain .html page?
Quote:
I've bookmarked the page. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
|
|
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 |