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

  • SEARCH
  • Home
  • 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 8734581
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T09:52:11+00:00 2026-06-13T09:52:11+00:00

1) I have a WordPress multisite subdomain installation with about 100 sites in the

  • 0

1) I have a WordPress multisite subdomain installation with about 100 sites in the network.

Network Admin – Sites (All Sites) shows them like this:

main site: "www.domain-name.com"
all other sites: "subdomain-name.domain-name.com"

there is also a domain mapping plugin, so they all get access as separate urls:

domain-name1.com
domain-name2.com
...
domain-name100.com

2) Currently urls on all blogs are set to:

domain-name.com/2012/10/26/post-name
domain-name.com/category/category-name

(I used today’s date as an example)

This is also the way domains show in Google and Bing search results

3) I am going to remove “2012/10/26/” and “category/” from the urls, so they are gonna look like this:

domain-name.com/post-name
domain-name.com/category-name

…and I need to have a rewrite rule that takes care of redirecting people coming from serps to these new urls

4) I have something like this right now:

RewriteRule ^([0-9]{4})/([0-9]{2})/([0-9]{2})/(.*)$ http://domain.com/$4 [L,R=301]

RewriteCond %{HTTP_HOST} ^domain\.com
RewriteRule ^([0-9]{4})/([0-9]{2})/([0-9]{2})/(.*)$ http://domain.com/$4 [L,R=301]

but I am not sure if it is correct / if it is gonna work right, and also I need to have a rule for all 100 websites, and not just one. These versions (only one of them was meant to be used) dont include the “category/” part either.

5) If somebody would have an idea how to do that it would be great (one or two rewrite rules for all sites would be probably best).

Thank you in advance for any info.

  • 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-13T09:52:12+00:00Added an answer on June 13, 2026 at 9:52 am

    You can simplify your regex for the RewriteRule using \d to match digits and only using a match group on the post-name. If this behavior is the same for all of the domains, you can just omit the domain from your RewriteCond and RewriteRule:

    RewriteRule ^\d{4}/\d{2}/\d{2}/(.*)$ $1 [L,R=301]
    RewriteRule ^category/(.*)$ $1 [L,R=301]
    

    You can test the above rules and resulting URLs with http://htaccess.madewithlove.be/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a network of about 200 blogs (Wordpress Multisite), and all of them
I have WordPress Multi site installed and all the same sites are using one
I have a website with Wordpress 3.0.4 installation, set up as multisite install. Some
I have a Wordpress Installation. I have about 3 x custom post types on
I'm attempting to setup a Multisite Wordpress Network, but one of the requirements is
Our company is trying to transition to WordPress Multisite but we have several issues
I've got an instance using this AMI - ami-b7a29cc3 http://thecloudmarket.com/image/ami-b7a29cc3--bitnami-wordpress-3-3-1-1-multisite-linux-ubuntu-10-04-ebs#/details Which is a Wordpress
I've created a multisite wordpress environment and made sites under it... I copied over
I have installed a Wordpress theme in /wp-content/themes/mytheme/ I then applied this theme to
I have wordpress installation where the magic quotes is set ON in the phpini

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.