tommyda Posted January 25, 2009 Share Posted January 25, 2009 Hi I am building a cms/review system and I would like to send 404 headers when a user attempts to visit the page without the required get variables. Example: This page will show the data from the database: review.php?sid=1 However this page will return a 404 error: review.php, review.php?sid=r4hui ect.. I am fully aware of how to do this I just needed to know if it would be a problem for google if review.php sends 404 but review.php?sid=1 doesnt. How can I do this? Quote Link to comment Share on other sites More sharing options...
landavia Posted January 25, 2009 Share Posted January 25, 2009 NOOOO that's what u done is a matter of security Quote Link to comment Share on other sites More sharing options...
tommyda Posted January 25, 2009 Author Share Posted January 25, 2009 NOOOO that's what u done is a matter of security I tried soo hard to understand what that meant but I just cant do it. Please rephrase. Quote Link to comment Share on other sites More sharing options...
landavia Posted January 25, 2009 Share Posted January 25, 2009 sry.. english is not my primary languages >>if it would be a problem for google NO please read google manual more.. none of the rule said about using 404 error page and review the reason you use .. 404.. i vote for allow the content in your pages Quote Link to comment Share on other sites More sharing options...
corbin Posted January 25, 2009 Share Posted January 25, 2009 I have no evidence to back this up.... Anyway, the dynamic pages would have to be reached by links on your site or google wouldn't know they were there. But, I don't know if google would follow the links if the page without the GET stuff returned a 404 header. It might think the physical file doesn't exist and just skip it. Quote Link to comment Share on other sites More sharing options...
tommyda Posted January 26, 2009 Author Share Posted January 26, 2009 I have no evidence to back this up.... Anyway, the dynamic pages would have to be reached by links on your site or google wouldn't know they were there. But, I don't know if google would follow the links if the page without the GET stuff returned a 404 header. It might think the physical file doesn't exist and just skip it. Thats exactly what I was thinking, I think I might just do a redirect to an error page but not send 404 headers. Quote Link to comment Share on other sites More sharing options...
landavia Posted January 29, 2009 Share Posted January 29, 2009 imho .... is better to redirect to 404 than just an error. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.