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
-
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 -
Mass changes of titles and descriptions can cause issues?
I have a big website with all the titles and desc NOT optimized...if i change all of them in one day this can cause seo issues on my site? It's okay to do that?
On-Page Optimization | | markovald0 -
I'm starting an online training school and need some advice.
Hey Moz'ers, I'm looking start an online training website. I feel there is 3 options: Self hosted LMS (Moodle, Litmos etc), Sass solution (Academy of Mine, Pathwright etc) Or DIY with Chargify type payments/subscriptions. To get started it is easiest to use one of the software as a service options. I get to use my own domain but everything else is via the software provider. **What potential problems can you see if/when I decided to do my own self hosted option? Will I be able to redirect the pages to my new site and pass along my accumulated page rank with minimal disruption or am I missing something catastrophic? ** Any advice would be helpful.
On-Page Optimization | | danlovesadobe0 -
Pages I don't want
Hello Friends, A few days ago, I set up my wordpress site and everything is great so far, there's just one small problem. Wenn I search for site:mysite.com I see a lot of pages in the index I don't want to have on my site. It looks like demo pages from the theme I bought. Examples: http://mysite.com/themefusion_es_groups/group1/ http://mysite.com/slide/youtube/ http://mysite.com/lorem-ipsum-2/ http://mysite.com/slide/demo-5 What would be the best way to handle it? Simply delete the pages, then a soft 404 shows. Delete the pages and 301 them to the start page. Are they disapearing from the infex then? I am very grateful for tips regarding this! Thanks in Advance:)
On-Page Optimization | | grobro0 -
Duplicate Content for Men's and Women's Version of Site
So, we're a service where you can book different hairdressing services from a number of different salons (site being worked on). We're doing both a male and female version of the site on the same domain which users are can select between on the homepage. The differences are largely cosmetic (allowing the designers to be more creative and have a bit of fun and to also have dedicated male grooming landing pages), but I was wondering about duplicate pages. While most of the pages on each version of the site will be unique (i.e. [male service] in [location] vs [female service] in [location] with the female taking precedent when there are duplicates), what should we do about the likes of the "About" page? Pages like this would both be unique in wording but essentially offer the same information and does it make sense to to index two different "About" pages, even if the titles vary? My question is whether, for these duplicate pages, you would set the more popular one as the preferred version canonically, leave them both to be indexed or noindex the lesser version entirely? Hope this makes sense, thanks!
On-Page Optimization | | LeahHutcheon0 -
Can't find Text-Only Cached version in Google search
Hi, I'm trying to view the text-only of a webpage to run a SEO audit, however Google does not give me this option. When i click the two arrows that appear to the right of a search result, the only option I get is Cached. Is there a reason this might be happening? I've tried clearing my cookies, signing out of Google, and anything else I could find on my troll of the internet. I also tried text, only please! however whether this works or not is debatable considering it shows me actual pictures on the site. Any ideas, or maybe another add-on that will work?
On-Page Optimization | | JuiceBoxOM0 -
404 link | How to remove the link so it is not found?
My report has listed a few links with 404 errors. They are internal links but are not found. Is there a way to remove that link so it is not found again? Thanks
On-Page Optimization | | SavingSense0 -
How to handle pages with no information at the moment, but are not 404?
As people who may have seen my past questions know, I run a small website which acts as a business/review directory for local businesses in a specific niche. Right now every business has a page on a url such as: http://site.com/businesses/business-name which shows the top 5 reviews with a link to the full review list which is located at: http://site.com/businesses/business-name/reviews The problem(?) I have is that even for a business with 0 reviews, the latter URL is available and responds with a 200 status code, but ultimately just says "There aren't any" which results in search terms for "business name reviews" often leading to these dead-end pages when I would rather have them land on the business page itself. How is everyone handling URLs? Until the business has has reviews, this URL is useless, but it is a completely valid URL. Some ideas I've had are in order of what I think is best to worst: Return 200, but with a meta 'noindex' tag if the business has no reviews at the time requested Return 404 if the business has no reviews at the time requested Return 302 back to the main business page if the business has no reviews at the time requested Anyone have any better ideas than above for how to handle this situation? One other option is to completely get rid of the full review list and rework the main business profile page, but that would obviously require a lot more development. I'm looking for the best option in the meantime. Thanks in advance for your insight.
On-Page Optimization | | qurve0