What kind of HTTP redirect for logins?

心不动则不痛 提交于 2019-12-12 02:36:36

问题


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:


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



来源:https://stackoverflow.com/questions/4219184/what-kind-of-http-redirect-for-logins

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!