Javascript(0) extension causing an excess of 404's
-
For some reason I am getting a duplicate version of my urls with /javascript(0) at the end. These are creating an abundance of 404 errors. I know I am not supposed to block JS files so what is the best way to block these?
Ex:
http://www.jasonfox.me/infographics/page/8/javascript(0) is a 404
http://www.jasonfox.me/infographics/page/8/ is not
Thank you.
-
That's correct.
In your HTML you have code as:
-
[_this is the search icon and as it's created it fool some bots that there is file javascript(0) in current folder. So if i'm here:
http://www.jasonfox.me/infographics/page/9/
then bot add file this as relative and full path became:
http://www.jasonfox.me/infographics/page/9/javascript(0)
and this is how 404 is make.Correct way is to replace "javascript(0);" with "javascript:void(0)" or with "#". Only this patch in WordPress theme (look around header.php) will stop 404s._](javascript(0);)
-
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
-
Hello, I've heard that the outbound links I provide in my content should have a high degree of relevancy to the topic I'm writing about or they aren't really worth including. Is this true?
Hello, I've heard that relevancy of the content between the source page and the target page of outbound links in my content matters greatly. The outbound links I provide in my content should have a high degree of relevancy to the topic I'm writing about, or they aren't really worth including. Example: Don't just link to the homepage of an organization mentioned in the article, link to a page on their site that is related to the topic you are writing about. Is this true? Would including less relevant links negatively impact SEO in any way?
On-Page Optimization | | DJBKBU0 -
With generic product like screws, for example what is best practice when writing descriptions? It's tough writing unique content for something when the only difference is lengths
With generic product like screws, for example what is best practice when writing descriptions? It's tough writing unique content for something when the only difference is lengths
On-Page Optimization | | Jacksons_Fencing1 -
How many css and Javascript on ecommerce site?
Hello, I want any tool which seach css and javascript of whole ecommerce cite? Please suggest. Thanks! Dev
On-Page Optimization | | devdan0 -
H2's vs Meta description
in some of my serp results the h2's are showing up instead of the meta description. i have read that H2's arent really valid anymore. can someone clarify this for me?
On-Page Optimization | | dhanson240 -
Can't rank for a target key word "penalized?"
I've been trying to rank for the key word "kayak fishing" for my site www.yakangler.com. Last year when I started working on the SEO for my site I was on page 30 for Google search results so like the 300th result. After tweaking things on my site I managed to get to the second page but have since fallen all the way back to page 25-26 in the search results. I'm wondering if I'm penalized for this key word. I can't figure out why my site is ranking soooo badly for "kayak fishing" Any help or ideas would be greatly appreciated!
On-Page Optimization | | mr_w0 -
Should we create separate product descriptions for our customers' web sites?
Still got my SEO learner plates on, but I'm trying to help a small e-commerce site which makes and sells baby products . They have upwards of 150 independent retailers also selling their products. Mindful of the fact that many of these retailers are copying the same product descriptions to use on their own web sites, I wondered if there was any value in creating separate sets of product descriptions, one for our web site and one for all their trade customers, in order to minimise the amount of duplicated content devaluing our site. In theory Google ought to know that ours is the original source of the content, but some testing has shown customers ranking higher for the same product descriptions. We have a separate area on the site for trade, which contains lots of media information they can use, and we could include a set of product descriptions in this area for trade customers to download, keeping a unique set of product descriptions for ourselves. We won't stop duplicate content entirely, I realise - but do you think it's worth the effort of trying to implement? Our web developer thinks it's a total waste of time and not worth bothering with for the miniscule benefit he thinks we'll gain. Grateful for any pointers.
On-Page Optimization | | Mandy_Cochrane0 -
How do I fix a 404 with a 301
I understand the need for fixing 404's but I have yet to have a serious walkthrough of how to set up a 301. From all the talk on the forums and such I'm pretty sure this is easy but I've just never done it before and I could really use a walk through. Thanks
On-Page Optimization | | BenRWoodard1 -
Site URL's
We are redeveloping our website, and have the option to amend URLs (with 301 redirects from old URL to new), so my question is: Would 'golfsite.com/golf-clubs' achieve superior rankings than 'golfsite.com/clubs' for the search term 'golf clubs' if all other factors were the same? Should the URL reflect the intended search term wherever possible?
On-Page Optimization | | swgolf1230