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? Link to comment https://forums.phpfreaks.com/topic/142359-sending-404-errors-on-custom-cms/ 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 Link to comment https://forums.phpfreaks.com/topic/142359-sending-404-errors-on-custom-cms/#findComment-745904 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. Link to comment https://forums.phpfreaks.com/topic/142359-sending-404-errors-on-custom-cms/#findComment-745913 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 Link to comment https://forums.phpfreaks.com/topic/142359-sending-404-errors-on-custom-cms/#findComment-745922 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. Link to comment https://forums.phpfreaks.com/topic/142359-sending-404-errors-on-custom-cms/#findComment-745943 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. Link to comment https://forums.phpfreaks.com/topic/142359-sending-404-errors-on-custom-cms/#findComment-746862 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. Link to comment https://forums.phpfreaks.com/topic/142359-sending-404-errors-on-custom-cms/#findComment-750147 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.