Jump to content

andy1212

Members
  • Posts

    71
  • Joined

  • Last visited

andy1212's Achievements

Member

Member (2/5)

0

Reputation

  1. Ok **** it's still there under sitelinks. When I search on google while i'm logged in to my gmail account, 404.php doesn't show up in sitelinks under the snippet, but when I log out and do the same search 404.php shows up under site links. How do I get it to not show up in site links under the snippet?
  2. Thanks kicken and requinix for all your help!
  3. Oh ok, then ya I tried searching the website on google and 404.php didn't show up under site links! so I guess it's working now.
  4. This is what I have for the headers, Cache-Control no-store, no-cache, must-revalidate, post-check=0, pre-check=0 Connection Keep-Alive Content-Type text/html Date Wed, 07 Aug 2013 01:40:02 GMT Expires Thu, 19 Nov 1981 08:52:00 GMT Host-Header 192fc2e7e50945beb8231a492d6a8024 Keep-Alive timeout=5, max=100 Pragma no-cache Server Apache Transfer-Encoding chunked
  5. I checked safari and firefox for the networking area under the develop tools menu (safari) and web developer tools (firefox) and couldn't find it. What is the option I need to choose under Develop in Safari to view the header response. Thanks for your time!
  6. Ok now I'm getting 3 soft 404 error in Google web masters. I added the line, header("HTTP/1.1 404 Not Found"); to the very top of the page too and change all <? tags to <?php so not sure what's going wrong there now.
  7. Also how do I check to see if the right header is being outputed?
  8. Hey I marked as solved too soon, I'm still getting 0 soft 404 error when Google crawls my website. I have the following code for the 404.php page, <? include 'log.php'; include 'info/404.info.php'; include 'header2.php'; header("HTTP/1.1 404 Not Found"); ?> <div id="legal"> <div id="middle2"> <div id="leftcolumn"> <div id="contactus"> <div id="news" style="width: 550px; height: auto; float: left; text-align: left;"> <div style="margin-top: 30px; width: auto; height: auto; float: left;"> <span class="font3">Woops...</span><br /><br /> <span class="font15"> That page doesn't exist. Returning to the home page... </span> </div> </div> </div> </div> <div id="rightcolumn" style="text-align: left;"> <div style="float: left; text-align: left; width: 400px; height: auto;"> <span style="font-family: Arial, Helvetica, sans-serif; font-size: 20px; font-weight: bold; text-decoration: none; color: black;">Contact Us</span> <br /><br /> <? $id = '1'; $data = data7($id, 'street', 'city', 'phone', 'fax', 'email', 'url'); ?> <span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: normal; text-decoration: none; color: black;"> <? echo stripslashes($data['street']);?><br /> <? echo stripslashes($data['city']); ?><br /><br /> <b>Telephone:</b> <a href="#" class="font15"><? echo stripslashes($data['phone']); ?></a><br /> <b>Fax:</b> <a href="#" class="font15"><? echo stripslashes($data['fax']); ?></a><br /> <b>Email:</b> <? echo stripslashes($data['email']); ?> </span> </div> <div style="float: left; text-align: left; width: 400px; height: auto; margin-top: 30px;"> <span style="font-family: Arial, Helvetica, sans-serif; font-size: 20px; font-weight: bold; text-decoration: none; color: black;">Hours of Operation</span> <br /><br /> <span style="font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: normal; text-decoration: none; color: black;"> <? $id = '1'; $data2 = data6($id, 'monday1', 'sat1', 'sun1', 'monday2', 'sat2', 'sun2'); ?> <u>Spring & Summer Hours</u><br /><br /> Monday - Friday: <? echo stripslashes($data2['monday1']); ?><br /> Saturday: <? echo stripslashes($data2['sat1']); ?><br /> Sunday: <? echo stripslashes($data2['sun1']); ?> <br /><br /> <u>Fall & Winter Hours</u><br /><br /> Monday - Friday: <? echo stripslashes($data2['monday2']); ?><br /> Saturday: <? echo stripslashes($data2['sat2']); ?><br /> Sunday: <? echo stripslashes($data2['sun2']); ?> </span> </div> </div> </div> </div> <? include 'supplierlinks.php'; include 'footer.php'; header('refresh: 4; url=http://www.website.com'); exit(); ?> Thanks for your time and help
  9. It's ok I figured it out, how do I delete this thread now
  10. Hey, I'm using the Google structured data markup helper right now and trying to give structured data to the hours of operations listed on the home page. However, it shows this error, <meta id="_opens16" itemprop="opens" content="Please insert valid ISO 8601 date/time here. Examples: 2015-07-27 or 2015-07-27T15:30"> All I have is this, Monday - Friday: 9:00am - 5:00pm Saturday: 10:00am - 2:00pm Sunday: Closed and when I go to add an open and closed time, it say I need to provide the day, month and year, Opening hours Day of week: Monday - Friday Opening time: Day: required Month: required Year: required Time: 9:00am Closing time: Day: required Month: required Year: required Time: 5:00pm Day of week: Saturday Opening time: Day: required Month: required Year: required Time: 10:00am Closing time: Day: required Month: required Year: required Time: 2:00pm Day of week: Sunday Opening time: Closing time: Time: Closed Is there a way to just add the day and time since the hours of operation aren't based on the month or year at all. Thanks for your time!
  11. Ok I added this line to the top of the page, header("HTTP/1.1 404 Not Found"); So would this solve the problem?
  12. No I don't have that line on the page, should I have something like that there? It's just a page exactly like the other pages of the website with a message saying woops... wrong page and then I have a header which redirects the page to index.php
  13. Hey, I created a custom 404.php page and have the following code in the .htaccess to direct any non-existent pages to the custom 4040 page, ErrorDocument 404 http://www.website.com/404.php So it works great but when I search the website on google, 404.php is listed under the sitelinks. So I searched Google and came across their advice for what to do with a custom 404 page showing up in search and how to make it not show up. So then I searched Google for "actual 404 https status code" where there is lots of information about how it should work, but couldn't find any information about how to implement it. I have the 404.php page demoted under the sitelinks section of Google Webmaster Tools and there is a 0 soft 404 error under crawl errors. But do I need to put a line of code in the .htaccess file to show that an actual 404 error is there when on 404.php page. Also, under Blocked URLs in webmaster tools there is this code, User-agent: * Crawl-delay: 10 on the robots.txt page and I'm not sure what that is. Thanks for your time and help in advance!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.