The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Intermediate & Advanced SEO
    4. Default Wordpress 301 Redirects of JS and CSS files. Bad for SEO & How to Fix?

    Default Wordpress 301 Redirects of JS and CSS files. Bad for SEO & How to Fix?

    Intermediate & Advanced SEO
    3 2 287
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Daaveey
      Daaveey last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • Martijn_Scheijbeler
        Martijn_Scheijbeler last edited by

        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.

        Daaveey 1 Reply Last reply Reply Quote 1
        • Daaveey
          Daaveey @Martijn_Scheijbeler last edited by

          Thanks Martijn, we'll look into the blog post and implement.

          dave

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          • Is an iframe redirect on the same Domain bad for SEO
            NickSamuel
            NickSamuel
            0
            2
            115

          • How long should I keep the 301 redirect file
            4RS_John
            4RS_John
            0
            9
            322

          • External Redirects & SEO
            RyanPurkey
            RyanPurkey
            0
            2
            181

          • How to use a 301 Redirect when the first 301 Redirect is not the same as what's indexed?
            PatriotOutfitters81
            PatriotOutfitters81
            0
            3
            66

          • What is the Proper Use of 301 redirects for SEO purposes?
            dawnieando
            dawnieando
            0
            4
            738

          • Changing Wordpress Permalinks Bad For SEO?
            JordanGodbey
            JordanGodbey
            1
            2
            653

          • New to SEO. How do I set up a 301 Redirect? What Else should I do?
            Francisco_Meza
            Francisco_Meza
            0
            8
            913

          • Are free WordPress templates bad for SEO?
            salvyy
            salvyy
            0
            4
            1.1k

          Get started with Moz Pro!

          Unlock the power of advanced SEO tools and data-driven insights.

          Start my free trial
          Products
          • Moz Pro
          • Moz Local
          • Moz API
          • Moz Data
          • STAT
          • Product Updates
          Moz Solutions
          • SMB Solutions
          • Agency Solutions
          • Enterprise Solutions
          • Digital Marketers
          Free SEO Tools
          • Domain Authority Checker
          • Link Explorer
          • Keyword Explorer
          • Competitive Research
          • Brand Authority Checker
          • Local Citation Checker
          • MozBar Extension
          • MozCast
          Resources
          • Blog
          • SEO Learning Center
          • Help Hub
          • Beginner's Guide to SEO
          • How-to Guides
          • Moz Academy
          • API Docs
          About Moz
          • About
          • Team
          • Careers
          • Contact
          Why Moz
          • Case Studies
          • Testimonials
          Get Involved
          • Become an Affiliate
          • MozCon
          • Webinars
          • Practical Marketer Series
          • MozPod
          Connect with us

          Contact the Help team

          Join our newsletter
          Moz logo
          © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
          • Accessibility
          • Terms of Use
          • Privacy