FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

301 Redirect for blogger?

 


thiamshui
Anybody knows how to achieve a HTTP 301 Redirect for Blogger? How did this guy manage to do it? Thanks.

Code:

telnet iamchiron.blogspot.com 80
GET / HTTP/1.1
Host: iamchiron.blogspot.com

HTTP/1.1 301 Moved Permanently
Location: http://www.iamchiron.net/
Content-Type: text/html; charset=UTF-8
Cache-control: private
Content-Length: 207
Date: Sat, 17 Nov 2007 15:18:04 GMT
Server: GFE/1.3

<HTML>
      <HEAD>
            <TITLE>Moved Permanently</TITLE>
                                            </HEAD>
                                                   <BODY BGCOLOR="#FFFFFF" TEXT=
"#000000">
          <H1>Moved Permanently</H1>
                                    The document has moved <A HREF="http://www.i
amchiron.net/">here</A>.
                        </BODY>
                               </HTML>
Star Wars Fanatic
He probably used his .htaccess file.
Just place this in a .htaccess file in the documents folder:

Code:
Redirect /url.html http://new-url.com/url.html


By the way, you can also do this with php:

Code:
<?php
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: http://www.new-url.com" );
?>
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.