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. Removing dates from wordpress blog URL

    Removing dates from wordpress blog URL

    Intermediate & Advanced SEO
    4 3 276
    • 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.
    • vtmoz
      vtmoz last edited by

      Hi all,

      Ours is website's blog is built with wordpress. We used to have the below URL pattern like may other websites:  www.website.com/blog/2016/04/10/topic-on-how-to-optimise-blog.

      Recently we removed the date and made the URL pattern to just like: www.website.com/blog/topic-on-how-to-optimise-blog

      All the links have been generated with new URLs across the blog. Still all the old URLs have been reported as crawl errors in search console. I am wondering will there be any auto redirect formula to redirect all the old URLs to new URLs.

      Thanks

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

        Hi,

        In some cases your SEO Plugins should have made sure to update the redirects. But what you could do is a check on if there is a number/number in your URL and have it rewritten/redirect to make sure the old URLS will be redirected to the new ones. In the end the only thing you'd have to do is make sure the dates are stripped.

        Are you using NGINX or Apache?

        Martijn.

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

          Apache

          Keszi 1 Reply Last reply Reply Quote 0
          • Keszi
            Keszi @vtmoz last edited by

            Hi,

            You could add the following code to your .htaccess to redirect all dated urls to non-dated version:

            RedirectMatch 301 /([0-9]+)/([0-9]+)/([0-9]+)/(.*)$ http://www.**domain**.com/$4
            

            Change domain.com with your domain name.

            This should create a redirect from http://www.website.com/blog/2016/04/10/topic-on-how-to-optimise-blog to www.website.com/blog/topic-on-how-to-optimise-blog (and every similar situation).

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            • Remove Product & Category from URLS in Wordpress
              sergeystefoglo
              sergeystefoglo
              0
              6
              1.4k

            • Looking to remove dates from URL permalink structure. What do you think of this idea?
              julienraby
              julienraby
              0
              18
              4.9k

            • New blog post URLs due to WordPress permalink structure changes. Any SEO repercussions?
              Linda-Vassily
              Linda-Vassily
              0
              5
              134

            • Removing Blogs and 301 redirect to blog home page?
              DonnaDuncan
              DonnaDuncan
              0
              2
              68

            • Will Canonical tag on parameter URLs remove those URL's from Index, and preserve link juice?
              StreamlineMetrics
              StreamlineMetrics
              0
              2
              113

            • Removing A Blog From Site...
              KaneJamison
              KaneJamison
              0
              3
              92

            • Redirect posts from a wordpress.com blog over to a self-hosted blog
              blacey
              blacey
              0
              7
              4.5k

            • How to remove an entire subdomain from the Google index with URL removal tool?
              Ocularis
              Ocularis
              0
              3
              7.6k

            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