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
-
Does javascript generated content consider as regular content?
The website mentioned below, the content is generated using javascript, and content is something to do with Unicode char. The Unicode content creates as you scroll down. Will this content affect SEO https://www.myweirdtext.com/
On-Page Optimization | | teenmass423230 -
Thousands of 404's showing up from Wordpress Blog!?!?
Hey guys, Have recently seen thousands of 404 errors thrown up from my wordpress blog in Google Search Console. These are URL's trying to link (i'm not sure where from) to other parts of my site, but they are not relative to the site root... infact they are a mix of random folders/subfolders and pages on my site. E.g: http://www.MYSITE.co.uk/blog/how-to/driving-to-the-alps/attachment/2013-land-rover-range-rover-evoque-front-snow-1/st-martin-de-belleville/chalet-st-martin-de-belleville/ski-holidays/ski-holidays/summer/st-martin-de-belleville/summer/your-stay-st-martin-de-belleville.html This is a link to a picture on the blog: http://www.MYSITE.co.uk/blog/how-to/driving-to-the-alps/attachment/2013-land-rover-range-rover-evoque-front-snow-1/ And the rest of it is finding it's own way there! Any ideas? This is Wordpress by the way. Cheers, Paul. p.s. I got no help from the Wordpress community so am posting here! p.p.s I forgot to mention that MOZ is reporting these issues too, but running Screaming Frog does NOT show any 404's at all on my site...
On-Page Optimization | | SnowTrippin0 -
When Content creation isn't an option...
I currently work as an SEO/SEO in training. Oftentimes I get projects that require me to look at well established websites of big brands, the kind one would assume put a lot of effort into their sites, and make SEO changes. Additionally they want "actionable" changes that can be made on the fly so content creation, and most linkbuilding, is usually out of the question. Does this limit me to just changing meta titles and descriptions? What if all that seems alright too?
On-Page Optimization | | Resolute0 -
Duplicate Content with ?Page ID's in WordPress
Hi there, I'm trying to figure out the best way to solve a duplicate content problem that I have due to Page ID's that WordPress automatically assigns to pages. I know that in order for me to resolve this I have to use canonical urls but the problem for me is I can't figure out the URL structure. Moz is showing me thousands of duplicate content errors that are mostly related to Page IDs For example, this is how a page's url should look like on my site Moz is telling me there are 50 duplicate content errors for this page. The page ID for this page is 82 so the duplicate content errors appear as follows and so on. For 47 more pages. The problem repeats itself with other pages as well. My permalinks are set to "Post Name" so I know that's not an issue. What can I do to resolve this? How can I use canonical URLs to solve this problem. Any help will be greatly appreciated.
On-Page Optimization | | SpaMedica0 -
Duplicate Content - But it isn't!
Hi All, I have a site that releases alerts for particular problem/events/happenings. Due to legal stuff we keep the majority of the content the same on each of these event pages. The URLs are all different but it keeps coming back as duplicate content. The canonical tag is not right (i dont think for this) egs http://www.holidaytravelwatch.com/alerts/call-to-arms/egypt/coral-sea-waterworld-resort-sharm-el-sheikh-egypt-holiday-complaints-july-2014 http://www.holidaytravelwatch.com/alerts/call-to-arms/egypt/hotel-concorde-el-salam-sharm-el-sheikh-egypt-holiday-complaints-may-2014
On-Page Optimization | | Astute-Media0 -
404 Error to homepage
Is there any risk of forwarding 404 links directly to homepage. I already have 404 page but now google showing you have lots of 404 links and some of them i can't control to fix this issue. Is there any problem if i do so for SEO ?
On-Page Optimization | | chandubaba0 -
On-Page SEO Priorities: Title's, Anchor Text or Meta data?
**Any suggestions for prioritized on-page SEO work? Relative weights of importance? ** **What is most important from highest to lowest? ** MetaTag Descriptions? Titles? Anchor Text? Alt Text - for images? Anything else? We might not be able to do everything at once like I desire ......but I do feel we should at least get the ball moving in the right direction. I am looking for ideas or suggestions on what to prioritize for a little bit of on-page SEO work on our website. I personally feel that SEO is pretty important but I am a novice. I have been reading this site the past week and want to convince my webpage guy that on-page SEO is important and that we should at least do a few things and gradually get the work done. Rightfully so our #1 priority is to redesign our landing pages (they are bad) . I also think we should do a little On-Page work concurently. (Lack of on-page SEO is also preventiing me from successfully submitting and being accepted by Dmoz, Yahoo, BOW etc) He is mainly a back engine guy and does a very good job with that. If I were to TELL him to do a few prioritized on-page SEO things what would you suggest? He did do something on the home page at my suggestion but that is all to this point. We have over 400 pages indexed with very little on-page SEO on them. Thank you, UtahTiger
On-Page Optimization | | Boodreaux0 -
How do I do a 301 Redirect in IIS 7 from http://www.freightmonster.com/index.html to http://freightmonster.com/index.html when I don't have a physical page to redirect?
I'm trying to get rid of my Rel Canonical links and use the 301 Redirect instead.
On-Page Optimization | | FreightBoy0