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
-
Outbound 404 Links
My blog goes back to 2005 and occasionally I find outbound links on old posts that now generate a 404 error. Is there a Moz tool that can find and report on such errors? If not, are there other tools you can recommend?
Moz Bar | | btreloar0 -
I use json-ld in our site but schema not found in markup tool bar moz
i use json-ld in our site. structure data in test without any error but in test markup moz in our site schema is not found! Is it time for Google to identify the code to verify the schema?
Moz Bar | | shokoufezand0 -
Can building quality links on internal pages help us to improve DA?
Dear expert,
Moz Bar | | jhfdbeaob
I hope that you all are fine 🙂
Today, I am very confused about improving DA of my client website. For example: He has a domain www.abc.com
and he wants me to build a backlinks on different internal pages like
www.abc.com/service-1
www.abc.com/service-2
www.abc.com/service-3 If i build high quality links on internal pages (service pages) rather than building links on main domain (home page). Does the Domain Authority will increase
OR
I have to build links on Main page to boost the DA I am hoping a positive reply from your side Thanks1 -
"New" issues not previously found being shown?
I'm not sure what logic Moz is using for its reporting of Site Crawl issues, but it appears to be pretty flawed (unless I'm missing something, which is possible). I've got a client site that has been in Moz for about 6 months now. Every time the crawler runs, the same number of pages are reported as having been crawled. However I'm consistently getting "New Issues" reported that should have been reported during previous crawls. Example: A redirect chain was reported several month ago. The referring URL was the homepage of the website, and we tracked it down to an old link in the header. This was fixed, marked as resolved, and the issue was not shown on the next crawl. Several weeks later, the same issue was reported for a different page on the website - a page which has existed since 2014 and was already crawled many times. Again, we fixed. Fast-forward to the report that just ran on 12/1 and we have the same issue reported, for a different page, which has also existed for years and has been previously crawled. It's very hard to explain to a client "this item you are seeing has been resolved", only to have it continually crop back up in future reports. Note this is not limited to redirect chains - that's just an example. I'm seeing this for other items such as missing canonicals, duplicate titles, etc.
Moz Bar | | RucksackDigital0 -
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 -
Unusual "internal links" causing SEO issues?
Hi all, I'm working on an ecommerce site which has been around for almost 20 years. Over the years it has started to suffer in Google's search results and the decision was recently made to completely overhaul the site. We're now very happy with the website's design, and care was taken to maintain page rank via 301s, etc. However, the site has just fallen off the bottom of Google's first search result page (for the first time in years) for our main keyword. I signed up here in the hope of using Moz's SEO tools to help us return to our former glory, but I'm seeing some confusing results: I've run a crawl test on our site, as well as on our two biggest competitors. One thing that really stood out was that we have over 1000 "internal links" to our homepage, whereas our competitors both have around 20-30 (both of which appear at the top of the first SR page). Since the rest of the "on-page SEO" looks OK, I suspect that this could be causing our problems, but I don't understand where this "internal links" number is coming from. Links to our competitor's homepage appear in the navigation bar on every single one of their product pages (which they have about 500 of), yet your report only claims that they have 30 links. The only link to the homepage appears in the site's main navigation bar (which obviously appears on every product page - exactly as it does on our competitors' sites). Additionally, almost every other page on our site apparently has 0 "internal links" and 0 page authority. Is this a problem with Moz's crawl test tool, or is our site actually at fault? The above has been asked directly to Moz staff, but I haven't had a reply. I'd hugely appreciate any words of wisdom from the community. Many thanks in advance. Nick
Moz Bar | | nick45010 -
Is it possible for a wordpress theme to block MozBar in Chrome?
My client's website, when viewed in Chrome, does not show the MozBar. In Firefox, it's all good. I've checked multiple websites in Chrome and they all bring up the MozBar, it's just this one. (theme and wordpress install are both up to date) Is it possible that this is a theme issue or does anyone have any ideas as to why this is happening?
Moz Bar | | SearchAppealSEO0 -
Presenting Link Building Information to Clients
Hi, I am hoping for some help concerning (from other SEO's Agencies, Consultants, etc.) what would you have found to be the best tool to present to your clients that you are doing the work the client paid for? I have a number of clients to perform various SEO services for them and so I have chosen MOZ.com as my TPA to show a good visual presentation of what I have done and how the site is trending, since coming on board. I have been using SEOMoz.com or MOZ.com for a while now and I have always found it a fantastic product. However, I did wish that I could generate reports for each client and it would be automatically emailed to the contact person I have been working with. But, my big dilemma is what TPA should I use in conjunction with MOZ.com - RavenTools.com or BuzzStream.com - when it pertains to Link Building Management. Once again, I have used both, but I have found RavenTools.com a tool with a lot more features and I can present information about what links I have generated to each client. Buzzstream.com is not as useful when it comes to this. So, I have been presenting the clients that I have with information for MOZ.com (KPI's - Organic Search, Traffic and New Visitors etc as a measurement of my Link Building efforts) but they want to have more detailed information about each link that I have gotten for them. Does anyone have a suggestion to best approach this problem? I hope I expressed my problem clearly enough for good feedback. Thanks, Brook Shipley ShipleySEO.com
Moz Bar | | Linker750