Default Wordpress 301 Redirects of JS and CSS files. Bad for SEO & How to Fix?
-
Hi there:
We are developers with some digital marketing expertise, but a current issue has us perplexed. An outside SEO firm has asked us to clean up a large number of 301 redirects. Most of these are 'default' Wordpress behavior that relate to calling the latest version of a JS or CSS file. For instance, a JS file is called with this: https://websitexyz.com/wp-includes/js/wp-embed.min.js?ver=4.9.1 but ultimately redirects to this: https://websitexyz.com/wp-includes/js/wp-embed.min.js. We are being asked to prevent the redirect from happening by, presumably, calling the ultimate file to begin with.
The issue is that, as far as we know, there's no easy way to alter WP behavior to call the ultimate file to begin with. Does anyone have any thoughts on this?
Thanks.
-
Thanks Martijn, we'll look into the blog post and implement.
dave
-
Hey David,
Depending on if you're using a custom template or not, you might want to look into this blog posts which is talking about that you can basically register files & styles to be inserted but they don't always have to have the version number: http://wpcrux.com/blog/wordpress-enqueue-functions-version/ . I've dealt with this once before, although it's a super tiny issue that is usually something that I would put on my roadmaps ;).
Martijn.
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
-
Menus, Ecommerce & SEO
Hi Our Dev team have updated our website with a new menu structure, they have given us 2 options to choose from. 1st option I think is better for SEO - this will be showing top 8 categories and then subcategories once you hover over category 1. Not much change from our current structure, just a slightly different layout. (I have added an image example of what option1 will look like) 2nd option - is preferred by management - shows all 24 categories & no subcategories. My question is, will removing the current subcategories from the main menu make them lose rankings & make them harder to rank in future? I'm guessing everything will move down a level in the structure and lost page authority... Does anyone have any articles/case studies to prove this point? Any help is much appreciated 🙂 Becky DKzgD
Intermediate & Advanced SEO | | BeckyKey1 -
Redirect 301 still works?
Hi, yesterday a friend said that 301 redirects does not transfer your page rank or domain autorithy anymore. I could'nt find anything in internet saying it, but I decided to ask you guys, since I think you are very reliable. so, 301 redirects wroks for transfer page rank, and i can create better domains and transfer everything, or this strategy is gone forever now?
Intermediate & Advanced SEO | | chablau0 -
How long should I keep the 301 redirect file
We've setup an new site and many pages don't exist anymore (clean up done). But for many of them we have new pages with new url's. We've monitored the 404 and have now many URL's redirected with 301 (apache file). How long should we keep this in place? Checking all links manually to see of new url is in place of the old url (in google) is too much work. tx!
Intermediate & Advanced SEO | | KBC0 -
Moving to a new domain name - 301 redirect NOT an option
Hi everyone My question concerns moving from an old to a new domain name without losing all previous SEO efforts. I am aware that a properly executed 301 redirect is the answer and way to go as well as telling Google about it in Webmaster Tools. However, what is the situation, if you do not own the old domain name anymore? If you have no means of getting back the old domain name and wanting to basically mask/switch the already existing website to the new domain name, will search engines penalise the "new site" as a duplicate, since the "old site" is still in the search engine rankings? I know that not being able to execute a proper 301 redirect and starting out with a new domain means a fresh start, but what is the best way to minimise the negative impact (if any)? Basically dropping the sites' current content and starting out new in favour of the new domain name is not really an option. Even if you were to take the content from the old site and place it on another site, this would surely be seen as duplicate too. Anyone thinks that Webmaster Tools/Google is savvy enough to spot the difference when the "old site" gets removed and the "new one" added instead (in Webmaster Tools). I read something along the lines about having your host point the DNS from the old site to the new one. Could something like be helpful? Thanks all in advance for your help and input!
Intermediate & Advanced SEO | | Hermski0 -
Updated Wordpress version and installed SEO plugin, ranking went down
Last week, we updated our Wordpress version to the most recent version, and installed the SEO plugin. Our rankings immediately went down from #9 to #19. Is this normal? Will our rankings improve once the search engines crawl our site in the next couple weeks? Any feedback is helpful!
Intermediate & Advanced SEO | | safiaabbasi0 -
301 redirect via htaccess question
So, I have www.sitea.com and www.siteb.com I want to redirect SOME pages from www.sitea.com to www.siteb.com (example: www.sitea.com/plugins/wp/ to www.siteb/wp/ etc ) and the rest of any pages left, to the homepage of www.siteb.com. It is something with conditions... any help, please?
Intermediate & Advanced SEO | | jasmin280 -
Duplicate content even with 301 redirects
I know this isn't a developer forum but I figure someone will know the answer to this. My site is http://www.stadriemblems.com and I have a 301 redirect in my .htaccess file to redirect all non-www to www and it works great. But SEOmoz seems to think this doesn't apply to my blog, which is located at http://www.stadriemblems.com/blog It doesn't seem to make sense that I'd need to place code in every .htaccess file of every sub-folder. If I do, what code can I use? The weirdest part about this is that the redirecting works just fine; it's just SEOmoz's crawler that doesn't seem to be with the program here. Does this happen to you?
Intermediate & Advanced SEO | | UnderRugSwept0 -
SEO - Product Related MiniSites: Hosting & Domains
Hey Mozzers, I would first like to thank everyone in advance for replying to my question 😉 Actually, my question is 2-part: Hosting & Domains 1) We are currently researching product-related domains and would like to build-out review style mini-sites on WordPress that link back to our main site product pages. We're using X-Cart platform and X-Cart offers a WordPress module. My Dev. recommends installing a main WordPress mini-site template on my server and replicating this template under different domains/unique content, obviously ;-). -My questions is; For backlink purposes, would it be better to host these WordPress pages in a different location/server? 2) Domains (which domain extensions are the best): I have read mixed reviews on this subject ... a) Do dashes (i,e. brand-model.com) have an impact as well?? I read a post regarding this; http://www.commonsensemarketing.net/do-domain-name-extensions-matter/ - and the general feeling was that .com and .net ranked higher, faster but that .info wasn't a bad runner up. I was a bit excited to hear that .info wasn't a bad choice as they are actually "available" and cheap as well (under 3 bucks) until a comment was posted about a "Market Samurai" study. They reported testing 4 domain names (below) with the same article, date & time post . 1. domainname.com
Intermediate & Advanced SEO | | k9byron
2. domainname.org
3. domainname.net
4. domain-name.com -My question is: Can anyone give any advise on which domain extensions work better/rank higher faster? com / .net / .org / .info / ect? Also, is it better to have more product related keywords in the domain? Example, one of my products is the "Dogtra 280ncp Platinum". WordStream exact match tells me that "dogtra 280ncp" gets 210 searches per month and that "dogtra 280ncp platinum" gets another 91 searches per month. I'm guessing that its better to buy www.Dogtra280ncpPlatinum.com instead of www.Dogtra280ncp.com as we would pick up the searches for the "platinum" term as well? Question Summary: Is it better to host these mini-sites on another server than my main site? Which domain extensions work better? Is it better to use as many product related keywords in the domain as possible and maybe even throw modifiers in there as well such as "buy" or "review"? Thanks Again!
Byron-0