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
-
How can I make sure pages with similar content don't damage the other's SEO?
I work for a travel company and I have a 'tour page' targeted for pre-booking and a 'booking pack page' post-booking page, with some similar content but with details such as hostel locations, meeting places and times etc. I want to make sure the tour page keeps the authority as this is what I want to rank on SEO. I've got a couple of similar problems to this across site, there are a few pages on site that are post-sale and don't really need to rank on Google but it would be great if they could contribute to other pages' rankings. Thanks!
On-Page Optimization | | nicolewretham0 -
Async JavaScript page load times affect on ranking.
Our company plan to use in our product page a live chat support app. But I concern about the page load time. The script is loading asynchronous and in the inner tests increase the average page load time with around one sec. Previously the load time was between 2.5-3.3 sec after the chat support increased to 3.8-5 sec, but sometimes there was extreme +10 sec worse results. My question is how much can this impact to our search engine rankings?
On-Page Optimization | | laszlo_muhi0 -
Web designer doesn't see duplicate pages or issues??? Help!
I have a website that has duplicate pages, and I want to fix them. I told my web guy and his response was: "we do not see any issues on our end. It is not hurting any ranking in the 3 major searches. We have no duplicate pages" Here's the site http://www.wilkersoninsuranceagency.com/ Here's the home page again http://www.wilkersoninsuranceagency.com/index.php Here's what MOZ say: Please see attached image. I'm not sure what to tell him, as i'm not a web person, but MOZ is telling me we have issues on the site and I feel like they should be fixed?? 7QWkVU0 tYCjV
On-Page Optimization | | MissThumann0 -
Inventory Pages that are Sold, 404 vs 301?
I am working with a company that sells high-priced automobiles. Each Unit has its own URL We currently leave most sold inventory live on the site as it draws in many leads (the units are visually shown as sold, so it shouldn't be a UX issue in most cases). We are wanting to start pruning some old units (this is in WordPress - custom post type) and I'm not quite sure what the best solution for this site is with removed units. Some ideas: Remove the units pages that are no longer needed, resulting in any links 404'ing to a useful 404 page. Remove the units pages, and 301 them to the Homepage (I don't really want to do this, as it seems like really poor UX) Remove the units page, and 301 the user to a specific "This item has sold" page that is shared by all sold units, but may not be the sites full 404. another option I haven't thought of? I dont' want to do anything that would confuse or get search engines upset, and I'm not sure how bad 404's are, I see some info on how bad they are, some that say they aren't bad. I'm guessing it is as usual, some gray area in the middle.
On-Page Optimization | | Andy_Staple0 -
Does Google use 302's to pass value to the target page?
Hi, I've received the below advice, is this correct? Throughout the site, the 302 (moved temporarily) status code is used for redirects, which Google will use to pass value to the target page. Is this correct? I was under the impression a 301 was used to pass value to the target page? Could someone explain the difference between a 301 and a 302, I'm not 100% sure. Thanks, Nathan
On-Page Optimization | | Heehaw0 -
Internal Linking Question(s)
Is it unwise to link internally to a page more than once on the homepage. I am reading that it is considered spammy. I am also reading that it passes PR twice to the internal page instead of just once... Which is it? Is there a way to stop passing PR to the "contact us" page. I watched an older video that Matt Cutts suggested a nofollow. Now I read that this strategy is a no no? Which is it? Thanks! 🙂
On-Page Optimization | | JML11790 -
Keyword density and it's impact?
How beneficial is properly optimised text on your website? I have been reading copy blogger and they seem to think it's almost the foundations and can have a massive impact - thus their software for improving optimised text. So... The way I see it, content can fit into 3 areas: 1. Over optimised - keyword stuffed 2. Produced without the keyword in mind and then small changes, maybe the keyword used once or twice within 500 words, slotted into the h1 tag. 3. Optimised - At the front of the h1 tag, density of roughly 3-4%, emphasised with bold and italic. What kind of impact can number 3 really have on rankings? If your position 7/8 could it be possible to see position movement from content changes? Cheers
On-Page Optimization | | activitysuper0 -
What are the best FREE Magento Extension for SEO?
I am launching an eCommerce website in magento, and there are some affiliate products are included. I am looking best and Free magento extension that allow me to add no-follow attribute to outgoing link with one click. Please do suggest Thanks
On-Page Optimization | | Ganesh340