Forum Moderators: coopster

Message Too Old, No Replies

PHP redirect

         

perom

10:46 pm on May 18, 2003 (gmt 0)

10+ Year Member



Hi,

I have a site that has a few pages that are for members only, I check on that pages if user is logged in and if its not logged in page redirects them to login.php with header ("Location: [widgets.com...] Is this safe with Google, will this be treated as duplicate content and should I exclude that pages in robots.txt?

speda1

12:01 am on May 19, 2003 (gmt 0)

10+ Year Member



Googlebot won't be logged in, so it will be redirected to the login page and will likely index that page. Thats not duplicate content.

mcavic

3:32 am on May 19, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



To be safe, I'd make it a 301 permanent redirect. The default in PHP is 302 temporary, and that might be duplicate content.

header("HTTP/1.1 301 Moved Permanently");
header("Location: [widgets.com...]