What kind of HTTP redirect for logins?

2019-09-07 02:18发布

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 is there a better practice I should be following?

1条回答
放荡不羁爱自由
2楼-- · 2019-09-07 02:43

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

查看更多
登录 后发表回答