开发者

What kind of HTTP redirect for logins?

开发者 https://www.devze.com 2023-01-26 00:29 出处:网络
I\'m currently redirecting users to a login page when they try to hit their home page. For example: http://www.goals.com/login.php?from=%2Fhome.php

I'm currently redirecting users to a login page when they try to hit their home page.

For example: http://www.goals.com/login.php?from=%2Fhome.php

Unfortunately, I'm also told that 302 redirection hurts SEO, and this type of redirection is showing up as a 302. Is this the correct HTTP status code for this type of redirection, or开发者_C百科 is there a better practice I should be following?


SEO doesn't matter if the homepage is password protected. Crawlers can't login to see the content, so your concern is moot.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号