404 help
-
Hello all, firstly let me apologize if this is the wrong place to ask this question.
I have a site www.promptresponseaccidentmanagement.com which gets a 200ok when checked for crawl issues, however pages such as /whiplash-injury-compensation-claims.php , /road-traffic-accident-compensation-claims.php and quite a few more return a 404. That's fine (usually) as I can quite happily fix that most of the time. However if you actually go to those pages in your browser, or click through to them on any part of the site you will see that they are in fact not redirecting to a 404 and everything is fine!?
Any body got any ideas?
Best
H
-
Hi sorry for not replying earlier. I have finally sorted it. It appears that the wordpress PHP include tag at the top of a static pages cause 404 errors on HTTP header requests...I changed a bit of code and it sorted itself out.
thank you for taking the time to reply.
Best
Haydyn
-
Did you get this fixed, I get 200 response codes for the pages you mention, checking with http://web-sniffer.net/.
Otherwise, I'd suggest it is an issue in your .htaccess or server setup. Are you using any kind of caching on your PHP files?
-
ok, i have just done a test and renamed a .php file to a .html file and it comes up with a 200, is this a server issue?
-
Hi thanks for replying so quickly, I have my own dedicated server which I manage other domains on, they are all working ok, do you think it could be my .htaccess file or my robots.txt?
thanks
H
-
Even though the page does render correctly, it also returns a 404 http status code (which you can verify by the firefox add-on 'HTTPfox' for example). It seems something in your website or webserver is mis-configured which is causing this incorrect http status code (404 error) to be fired instead of the 'all good' code (200) it should be firing for these pages considering they are perfectly accessible.
Have you tried contacting your technical staff or webhost about this issue
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Moving From HubSpot Help
I am migrating from hubspot to wordpress. How do i do this so i maintain my previous seo efforts. I have about 10 optimized blog posts. Can i cut and paste them into the wordpress blog or use a 301 url rewrite? Add to domain? Totally clueless! Your Noobian Friend! Jay
Technical SEO | | freshairtech0 -
How big is the problem: 404-errors as result of out of stock products?
We had a discussion about the importance of 404-errors as result of products which are out of stock. Of course this is not good, but what is the leverance in terms of importance: low-medium-high?
Technical SEO | | Digital-DMG0 -
404 Best Practices
Hello All, So about 2 months ago, there was a massive spike in the number of crawl errors on my site according to Google Webmaster tools. I handled this by sending my webmaster a list of the broken pages with working pages that they should 301 redirect to. Admittedly, when I looked back a couple weeks later, the number had gone down only slightly, so I sent another list to him (I didn't realize that you could 'Mark as fixed' in webmaster tools) So when I sent him more, he 301 redirected them again (with many duplicates) as he was told without really digging any deeper. Today, when I talked about more re-directs, he suggested that 404's do have a place, that if they are actually pages that don't exist anymore, then a ton of 301 re-directs may not be the answer. So my two questions are: 1. Should I continue to relentlessly try to get rid of all 404's on my site, and if so, do I have to be careful not to be lazy and just send most of them to the homepage. 2. Are there any tools or really effective ways to remove duplicate 301 redirect records on my .htaccess (because the size of it at this point could very well be slowing down my site). Any help would be appreciated, thanks
Technical SEO | | CleanEdisonInc0 -
Need help with rel canonical!
I have a client who's MOZ crawl is coming back with 62 "notices" about rel canonical. Is this bad? On the report, it lists the url, then "Tag Value" as the home page.....what does this mean exactly? Are they pointing all the pages to the home page? I think I have 301 and rel can confused....
Technical SEO | | cschwartzel0 -
Help writing a .htacess file with the correct 301 redirects
Hello I need help writing a .htaccess file that will do two things. URL match abc.com and www.abc.com to www.newabc.com except one subdomain was also changed www.abc.com/blog is now www.newabc.com/newblog everything after blog matches. Any help would greatly be appreciated. Thanks
Technical SEO | | chriistaylor0 -
Help needed regarding managing client expectations - tricky situation
I will try to explain the scenario as quickly as possible and my hope is that someone can share their opinion on how they would move forward. I was introduced to a local business owner who said he wanted help with SEO. Upon looking at his current online marketing, I saw he had 2 current sites promoting the same local business (martial arts instruction / classes). Why he had two sites? He said it made it easier for him to dominate in Google. Red Flag #1. Upon doing a quick site audit, I found a ton of problems with the existing site. Black text on a black background, keyword stuffing in title tags, non-canonicalization, no xml sitemap, no Google analytics installed...on and on. In addition, the site did not really have a good look to it graphically. I told him that I recommend a fresh new site using Wordpress and that we should build the content with the focus on explaining the benefits of the classes. He agreed and we began development of a new Wordpress site from the ground up. We built a sitemap, wireframe, nice design, etc. The site looks much better and we got rid of a lot of the technical problems with the site. The problem is this: Even though the new site is technically better based on On Page analysis, it is not showing up anywhere in the Top for localized keywords. The site has been live for about 2 1/2 months (March 1). I made the mistake of telling him that in a lot of cases in the past, I was able to build a new site for other clients that would rank well for localized searches based on On Page optimization alone. This is not happening for him with the new site. The new domain is relatively new (less than a year old) and has no links at all at this point. I recommended that we do a 301 redirect from his existing domain to the new one but he is skeptical and I almost can't blame him. The client is not paying me to do any SEO. The contract was to build a new site that would be built with best SEO On Page practices (Title Tags, Header Tags, Meta Desc., XML Sitemap, canonicalization, etc.) I hesitate to post the links to his existing site and the new one we built but I can see where that may shed some more light on the subject. If interested in taking a look, please send me a message. I guess the two questions are this: 1. Is it reasonable for a site to rank well for a localized non-competitive term based on A scores of on page analysis? 2. What harm or foul is there in doing a 301 redirect from the old domain to the new one and then reverting back if he decides that the move hurt his rankings more than helped? Thanks.
Technical SEO | | bluelynxmarketing0 -
Help with SEO
Hello, I am brand new to SEO and I'm learning on the go everyday. I am having issues with Google and getting any sort of ranking or analysis or even just traffic reports. I understand the site has never really been optimized so it might really not have any reports. So basically my real question is what helpful tricks or hints do you guys have that I can implement? Anything and everything helps. So far I have run the crawl diagnostics and I'm working on fixing the errors. Thanks fr your help.
Technical SEO | | Future130 -
Mod Rewrite Help
I need some help with doing the Mod Rewrite on our htaccess file. Basically I've a URL like this : www.example.co.uk/new-toy-search?keys=xbox and I want to rewrite the URL into something else (such as new-toy-search-xbox.html) Could someone please take me through the steps of how to do this? I've had a look at the Apache site but it's really confusing the way it's explained!
Technical SEO | | DanHill0