Java script links in Wordpress causing 404 not found
-
hi everyone, I've just done a moz crawl on my new site and am getting as few 404 errors on certain urls
http://www.wilsonfield.co.uk/services/equity-finance/197/
after analyzing the link its the 197 which is a href="#197", this is controlled by javascript to show hide additional data
Is there anyway to stop these links being crawled or fixing the 404 as there is no /197 it is just a link to hidden content
-
Alternatively you could do this an entirely different, and better IMHO, way by putting all of that content ON the page and using div tags with "display:none" that will change to display the content when the link is clicked, activating an on-click javascript event. This sounds complicated but really it is what most eCommerce stores do when they have tabbed content (e.g. product description, details, specs, shipping....) that doesn't all display at once and requires a user to click a tab to show the content there.
Here is a simple example with information on how to implement it.
-
I assume one of the places this issue can be found is on your About page where the visitor can learn more about each member of the team.
I am not a developer and am going to speak about this to the best of my knowledge. It may not be "technically" accurate, but I hope it will be more helpful to you than complicating the situation...
The URL being linked to, such as .../194 should probably be /#!194 instead, which would allow you to change the content via AJAX without changing the URL of the page (as a hashbang URL is treated much like an internal page link, known as a named anchor, which takes you to a different part of the page instead of a new page/URL).
Please see https://developers.google.com/webmasters/ajax-crawling/docs/getting-started for more information on implementing Google-friendly, crawlable content with AJAX.
I will leave this question open for discussion in case others have more to add.
-
Last Modified Found.Server Response HTTP/1.1 200 OKHTTP/1.1 200 OKDate: Wed, 04 Sep 2013 15:25:03 GMTServer: Apache/2.2.16Last-Modified: Wed, 04 Sep 2013 15:08:36 GMTAccept-Ranges: bytesContent-Length: 35798Cache-Control: max-age=3, must-revalidateExpires: Wed, 04 Sep 2013 15:25:06 GMTVary: Accept-Encoding,CookieContent-Type: text/html; charset=UTF-8You also have an issue where your server When not adding the #197 is not rendering a 304 this is a signal to Google that there has been changes in your site and necessary.http://www.feedthebot.com/tools/if-modified/ just to be on the safe side I checked your site for any Malware what I did find is an internal Path errorhttp://sitecheck.sucuri.net/results/www.wilsonfield.co.uk/services/equity-finance/ on the URL without the hash tagWordpress internal path: /www/sites/248/ccf/www.wilsonfield.co.uk/web/wp-content/themes/wilsonfield/index.php now using the same test and adjust your domain I get a error and you can see the first error is WP-Ajax-response.JS I think that is your issueWeb application version:
WordPress version: WordPress
Wordpress version from source: 3.6
Wordpress Version 3.5 for: http://www.wilsonfield.co.uk/wp-includes/js/wp-ajax-response.js
WordPress theme: http://www.wilsonfield.co.uk/wp-content/themes/wilsonfield/
Wordpress internal path: /www/sites/248/ccf/www.wilsonfield.co.uk/web/wp-content/themes/wilsonfield/index.php you may also want to look at the results here and see all the URLs listedhttp://sitecheck.sucuri.net/results/www.wilsonfield.co.uk so you know I get similar issues when I tried to scan your exact URL using the hash taghttp://sitecheck.sucuri.net/results/www.wilsonfield.co.uk/services/equity-finance/197/ I hope this helps you, Thomas -
I agree with you it most likely is the #197
however Google bot is able to crawl your site. The most effective method I can think of is to take the site that is not intentionally hidden from Google and 301 redirect it to the proper URL.
After that then take the new URL and add it to google index via Webmaster tools as well as posted on twitter to get it indexed faster if you feel that is the need.
The hash tag is showing you're using Ajax which is most likely causing this issue. Is there a reason you created this # tag link?
Was it part of analytics this most likely has everything to do with your analytics tracking you may want to look at that prior to changing URLs.
Take a look at your site using this tool it will show you essentially what Google bot is able to see.
http://www.feedthebot.com/tools/spider/test.php
The site code I'm looking at is in need of optimization also the twitter button that should appear at the bottom is not rendering correctly in Safari just so you know.
I can recommend a high-quality developer if you need one.
Hope this helps,
Thomas
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
-
Links between my two sites
I have a branded site (corporate site) that has links to my blog site. I am trying to locate all the links between the two. Most importantly from the BRANDED site to my BLOG. I've tried the inbound link but it shows I have none. What or how am I searching wrong?
Moz Bar | | Bwaples0 -
Top pages according Link Explorer shows 301 pages and images
I was looking at the top pages on my website using Link Explorer, it contains 301 pages and image URLs. Is this expected or I should be doing something to fix it? URL with second highest PA in site is a page already 301 redirected more than 6 months back. URL with highest PA in my blog is a random image in the blog, rather than any blog posts. Is this normal? Thanks -Aji
Moz Bar | | ajiabs1 -
Changed Domains and Internal Links haven't followed, Old Domain redirects to new domain
On our domain residentiallandlord.com we are a little confused on the Compare Link Profiles option,I'm wondering if you can helpWe changed our domain a few years back and have our old domain redirected to our new domain.On our new domain we have only internal links visible, https://residentiallandlord.com/wp-content/uploads/2018/06/moz-rl.com.pngbut if you look at our old domain, which goes to our new domain it has loads of internal links, even though there is no physical site on this domain as it redirects to our new one, https://residentiallandlord.com/wp-content/uploads/2018/06/moz-rl.co.uk.png Can you help me understand why no internal links are showing for the new domain and how to fix this.
Moz Bar | | karlh19740 -
Weird 404 in Crawl Diagnostics
I'am getting a lot of 404 errors (196 to be precise ) - but their pattern is weird.
Moz Bar | | oorbo
The page that the crawler is trying to find is (e.g):
http://www.oorbo.com/item/asufa-israeli-design-shop**/www.oorbo.com.
the linking page is** http://www.oorbo.com/item/asufa-israeli-design-shop meaning it adds to the end of the link the root URL - /www.oorbo.com. This happens in all 196 cases - trying to find a page http://www.oorbo.com/some-page/www.oorbo.com from a refferer page http://www.oorbo.com/some-page. Obviously this pages do not exist, and it's getting a 404. I've look into the pages themselves and digged into their code - It doesn't seem that the bad link is any where on the page. Did anyone came across this kind of issue? any one can point me to a solution ?0 -
External links that don't exist
I did a crawl test and it shows that there are 2215 external links on my home page here: https://www.playshakespeare.com An "External Link" is defined here: https://moz.com/researchtools/crawl-test "Number of links on a page that point to a page that is not on the same domain as that page." There are NOT 2215 external links on that page. There are only a handful at any given time. Why is the crawl test reporting thousands over that?
Moz Bar | | playshakespeare0 -
Internal Links Count in Crawl Report
My understanding of the 'Internal Links' results in a moz crawl report is that it represents the number of links on the given page that link to other pages on the same site.Assuming this is a correct assumption: We recently ran a crawl report on www.phase1tech.com. Some of the pages are coming back with a large amount of 'internal links'. These 2 pages for example are showing 800 internal links: http://www.phase1tech.com/Upcoming-Events
Moz Bar | | AISEO
http://www.phase1tech.com/Contact Then there are a number of pages coming back with 705 Internal Links, including: http://www.phase1tech.com/Dalsa-CameraLink-Cameras
http://www.phase1tech.com/Hitachi-CameraLink-Cameras At best there are approximately 70-80 links on these pages. Where are these large counts coming from? Is there a means to see what the links being reported on are? At the same time the 'Too Many On-Page Links' indicates 'No' for some pages with a high number of links, and 'Yes' for pages with a low number of links. For example: http://www.phase1tech.com/Baumer-SX-Series
Too Many On-Page Links: Yes
Internal Links: 2
What's up with that?0 -
I got a 404 in the Crawl Test Tool Report
I, yesterday i ran an crawl on http://www.everlastinggarden.nl and i get an 404. Does anybody know why this happens? <colgroup><col width="1535"></colgroup>
Moz Bar | | IMforYou
| # ---------------------------------------- |
| Crawl Test Tool Report | Moz,http://pro.seomoz.org/tools/crawl-test |
| www.everlastinggarden.nl |
| Report created: 15 Jul 18:34 |
| # ---------------------------------------- |
| URL,Time Crawled,Title Tag,Meta Description,HTTP Status Code,Referrer,Link Count,Content-Type Header,4XX (Client Error),5XX (Server Error),Title Missing or Empty,Duplicate Page Content,URLs with Duplicate Page Content (up to 5),Duplicate Page Title,URLs with Duplicate Title Tags (up to 5),Long URL,Overly-Dynamic URL,301 (Permanent Redirect),302 (Temporary Redirect),301/302 Target,Meta Refresh,Meta Refresh Target,Title Element Too Short,Title Element Too Long,Too Many On-Page Links,Missing Meta Description Tag,Search Engine blocked by robots.txt,Meta-robots Nofollow,Blocked by X-robots,X-Robots-Tag Header,Blocked by meta-robots,Meta Robots Tag,Rel Canonical,Rel-Canonical Target,Blocking All User Agents,Blocking Google,Blocking Yahoo,Blocking Bing,Internal Links,Linking Root Domains,External Links,Page Authority |
| http://www.everlastinggarden.nl,2014,404 : Received 404 (Not Found) error response for page.,Error attempting to request page | Best regards, Jos0 -
Anyone having problems with the Competitive Link Finder?
Half the reason I signed up for moz is because of the Competitive Link Finder. Every time I enter in the info and hit the go button in a split second I get this message "No common links found between sites, try adding more competitors" I've entered in several different searches for different industries and get the same message. I've tried it on several browsers and on a mac and pc. If anyone has an idea about what might be causing this please let me know.
Moz Bar | | DunckleyDesign0