Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9207999
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T00:30:57+00:00 2026-06-18T00:30:57+00:00

I had a WordPress blog where the individual post URLs were set up like

  • 0

I had a WordPress blog where the individual post URLs were set up like this:
http://blogname.com/knowledge-communities/2013/01/blog-title

I recently refreshed the site and they are now set to this:
http://blogname.com/blog-title

So if a user finds a link to an old blog post(through Twitter or other social media), I want to redirect them to the new URL structure by removing the ‘knowledge-communities’ segment and the date segments(2013/01).

I have this so far which is removing the ‘knowledge-communities’ segment, but I can’t find a way to remove the date segments- /2013/01.
RewriteRule ^knowledge\-communities/(.*) /$1 [R=301,L]

Any help is appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T00:30:59+00:00Added an answer on June 18, 2026 at 12:30 am

    You can modify your regex to catch the item after two groups of digits :

    RewriteRule ^knowledge\-communities/[0-9]+/[0-9]+/(.*) /$1 [R=301,L]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I had old wordpress blog which was under mywebsite.com/wordpress Now I have moved this
I had this Wordpress installation which was installed in a subfolder (not root). Like
My client had a wordpress blog at domain.com/blog with permalink structure ?p=page-id. I archived
I had a wordpress blog which was hosted in the public_html directory but in
So, I had a wordpress site, which was in site.com/dev and now I moved
I had a wordpress site installed in a sub folder with category/post-title permalink structure,
I developed a website with blog using wordpress. After I had my theme ready
I have a wordpress blog and I had the Captcha plugin on it for
I've recently migrated my wordpress.com blog to wordpress.org. When my posts include a [
I was about to deploy WordPress on Microsoft Azure Cloud following this excellent blog:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.