homepage Welcome to WebmasterWorld Guest from 23.23.9.5
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / WebmasterWorld / Webmaster General
Forum Library, Charter, Moderators: phranque

Webmaster General Forum

    
how to do 301 redirects
mthorpe

10+ Year Member



 
Msg#: 6342 posted 12:13 pm on Aug 13, 2004 (gmt 0)

How do you do 301 redirects? Anyone?

 

JasonHamilton

10+ Year Member



 
Msg#: 6342 posted 12:43 pm on Aug 13, 2004 (gmt 0)

in PHP:

header ("HTTP/1.0 301 Moved Permanently");
header ("Location: /new_location.php");

mthorpe

10+ Year Member



 
Msg#: 6342 posted 1:18 pm on Aug 13, 2004 (gmt 0)

Oh, so it has to be in .php? I don't know how to use "php", i only know how to use "html".

diamondgrl

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 6342 posted 1:25 pm on Aug 13, 2004 (gmt 0)

You can also do it in your .htaccess file if you are using an Apache server. I'll let the Apache experts (of which I'm not one) explain that.

Jason's right about what the "textbook" says about how to do it in PHP. I'll tell you, though, there are some versions of PHP in which that doesn't work. It was a bug in the code. The bug supposedly was fixed in an earlier version but it seems to have cropped up again. My version 4.3.6 still shows the error with IIS 6.0.

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