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 on my website do not get highlighted by Moz bar in Chrome
I've used the Moz bar for many years to quickly figure out if a link is followed or no-followed. I recently used a Wordpress plugin to build lists of subjects and excerpts of pages with appropriate links. An example is at https://www.chicagotraveler.com/chicago-parks/ This is the main Parks section page. Below the map is a set of links and descriptions of each park in this section of the site. The problem is that when I use the Moz bar to look at this page, the links are not highlighted no matter which settings I click on. Followed, No-followed, External or Internal. I've looked at the code and while there is a bit of css nearby the links, they look fairly normal. Does this mean that moz thinks there is something wrong. Do you think google will also ignore these links? Should I scrap the plugin and build and maintain these lists manually?
Moz Bar | | EdKim0 -
Why are Internal, nofollowed links good for Domain Authority?
I always thought that internal links should be 'followed' to preserve link-juice.
Moz Bar | | BottleGreenWebsites
I've just been checking my Domain Authority Links overview, and the competitor with the most no-follow internal links has been rewarded with a higher Moz DA score.
Can anyone explain why this would be the case? JRJ4Dwn1 -
I keep getting a 429 Too Many Request error for a wp-login page on my website. Is there a way to prevent that from happening, or fix outside of redirecting on the back end of WordPress?
I have a client that keeps coming up with 429 Too Many Request critical crawl errors. I re-directed some of them on the back end of WordPress, but additional keep coming in. The URL has a WP-Login and directs to back end login section. Is there a reason that would come up as an error, how can I prevent it from happening again, and how can I fix the remaining current errors outside of redirecting back to /? Thanks, Kalyn Lengieza
Moz Bar | | GrindstoneConsult0 -
Need a link rel="canonical"??
I'm getting a Craw issue in my MOZ insights which says "It looks like you're not using the rel="canonical" META attribute on any of the pages we crawled" Do we need to have a rel="canonical" on our site? I can't find a reason to use it so don't know why it would be appearing as a crawl error? Thanks
Moz Bar | | O2C0 -
We Launched a new site and Rogerbot is still reporting on links/errors from the old site, is there a way to clear those out?
We are mostly a Branding agency, and have not put a lot of effort into SEO for ourselves... SEO tends to take a backseat to design most of the time, making it a little difficult for me at times when it comes to SEO. We recently launched a new site, http://Roninadv.com/ and the developer and I have done quite a bit of work to make it work well for Google. I was really looking forward to a new crawl report from Roger, but alas, It's like Roger crawled the old site? The new site has been up since last Monday. Is there a way to clear out the old errors? Do I just need to give roger more time?
Moz Bar | | PaulRonin0 -
Many more 404 being reported in GWT than MA
Hi I have been submitting MA crawl reports to clients developers post going live with a new site migration and instructing them to set up 301's for any 404's still reporting which they have now done (despite instructing them not to go live until all old url's mapped & 301'd to new replacement page, or HP if no replacement). 1) When i look in GWT crawl errors there has been a spike since going live with 660 'page not founds' being reported compared to x11 404's in MA. Could there be a 'lag' in GWT reporting and actually they have already been dealt with just not updated by GWT in this report and the MA report is more accurate ? Should i wait and see/or mark as fixed and see if return tomorrow, or tell dev to immediately investigate ? I have checked some samples links and they are going to 404 type pages so presume they are still broken and urgent issue dev must fix immediately ? 2) How long does it take aprox for the page authority to be transferred via a 301 redirect to a new page since i see some category pages that had good PA and have been 301'd to new category urls, are now showing a PA of just 1 !! Cheers Dan
Moz Bar | | Dan-Lawrence0 -
Moz Report: Number of Domains linking to Domain
In the Moz report, what does the "number of domains linking to domain" indicate? I'm analyzing our competitors link profile and noticed some numbers as high as 2369232? Is there a form that explains the reports a little more in detail? Thanks,
Moz Bar | | WebRiverGroup0 -
Why do my top linking domains according to Webmaster tools, not even appear in my OSE report?
I know the Google index is obviously a lot larger than the MOZ index...but.... I have 8,000 links from blogspot.com according to Webmaster tools, and just one link according to OSE I have 600 links from an online dictionary according to Webmaster tools, not one is mentioned in my OSE report. I'd go so far as to say most of my top 10 linking domains according to Webmaster Tools, don't even have a single mention in my OSE report. We've been hit hard by Penguin 2.0 and I want to look at our link profile.....it seems OSE may be great for looking at my competitors link profiles, but for my own site it seems to be, well, not very accurate at all! So from a trying to do undo the damage caused by Penguin 2.0 point of view, should I just use webmaster tools and forget about OSE? Thanks!
Moz Bar | | MarbellaSurferDude0