Really odd 404 URL's
-
Hi
I'm getting some really odd 202 errors, I can't think that someone would link to me like this " http://sussexchef.com/contact-us/http.sussexchef.com/contact-us/ "
There are 95 of them to deal with, I've checked my site and I can click though all the links on my site with out coming across 1 404.
Any ideas?
All the best
Ben
-
Hi Ben are they 202 or 404?
-
Because 202 is nor an error, it's an 'accepted' code. Also, where are you seeing these?
-
Hi I see them in the latest moz crawl and they are 404's yes
I just migrated my site so I was expecting 404's but not with the http: in them twice!
Thanks for your quick responce
-
Judging by the screenshot, these are 4xx errors from your Moz crawl, yes? If you look on that spreadsheet in column AM, "Referrer" it will show you the referrer of those URLs. Look at those pages to see where the errors came from.
My guess is that these are being generated by your own website. This type of thing can happen if there is some confusion with absolute and relative URLs and the wrong form is being input somewhere.
-
Thanks
Yes they are all coming from my site. However I look at the referring url and view source But I cant find any url's with Http:// in them twice, I looked in the htaccess file on the server and they are not their either.
Really od, where do you think they are coming from?
Ben
-
Actually, I looked with Screaming Frog, and I can see where the error is. (One part, anyway.) Look in your header. The linking for the phone number and email there is odd.
-
Hi I see it in screaming frog too, should I just redirect the urls rather than trying to find them and correct them?
-
The http comes in twice, because it seems that an absolute path is being input where a relative path is expected.
In other words, the html of your link to E-mail : Info@SussexChef.com says: <a href="http.sussexchef.com/contact-us/"> this is on the page (I just picked one as an example): http://sussexchef.com/menus/christmas-buffet-delivery. The link becomes http://sussexchef.com/menus/http.sussexchef.com/contact-us/ because apparently in that header a path relative to http://sussexchef.com/menus/ was expected.
-
Wow
Ok so the header is coursing the bad links, how do I go about fixing that? do I contact the support that make the theme?
-
I haven't looked at everything, but I suspect that the only thing you need to fix is that link, the email link in the header. For some reason the URL there is being treated as being relative to the page that it is on. Talk to whomever set it up and they can probably fix it fairly quickly. And I'd probably make that a mailto: link anyway, but that's a different issue... [Looking at your site is making me very hungry, and I've just had breakfast!]
-
Thanks for the compliment!
So I just 301 all 101 links?
sounds fun huh!
-
I wouldn't do that. If this is Wordpress, you could probably rummage around in the editor and fix the problem (if you are very comfortable with that sort of thing) but the best thing would be to do as you mentioned, contact the theme support and tell them the problem. I am sure it is an easy fix.
-
I've opened a ticket with them, fingers crossed, any idea which file?
-
I would start by looking in header.php, but they will know.
-
Is this WordPress or some other platform? Do you have access to your CSS and HTML files? The template of the site? The ahref is just not done correctly for the contact us page.
-
Hi yes it is wordpress.
Do you mean Wp-admin>css>? there are lots of files in there! all .css
-
is there a header.php? I don't know, maybe better to let the pros handle it lol