문제

I run a site where some pages require a free account to access. I'm noticing a large number of soft 404s in Webmaster Tools coming from these pages. What is the correct status code to pass for these pages?

도움이 되었습니까?

해결책

I would recommend that a '403: Forbidden' status code would be the most acceptible in this situation. Wikipedia says

"A typical request that may receive a 403 Forbidden response is a GET for a web page, performed by a web browser to retrieve the page for display to a user in a browser window. The web server may return a 403 Forbidden status for other types of requests as well."

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top