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 6970107
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:40:05+00:00 2026-05-27T16:40:05+00:00

My client had a wordpress blog at domain.com/blog with permalink structure ?p=page-id. I archived

  • 0

My client had a wordpress blog at “domain.com/blog” with permalink structure “?p=page-id”. I archived this site at “v1.domain.com”. everything works fine.

I create the new wordpress blog at “domain.com/blog” with permalink structure “/year/month/postname”. still, everything fine.

I did a google search and found the old blog posts. they link to “domain.com/blog?p=page-id” and when single.php tries to open these files the loop goes crazy.

here is an example:
http://davidapuzzo.com/blog/?p=1821

if you add “v1” to the beginning of the domain, you will see where the post actually is:

http://v1.davidapuzzo.com/blog/?p=1821

I understand It would be a 301 redirect that finds all “http://domain.com/blog?p=page-id” URLs and redirect/prepends them with “v1.domain.com…” ? I just dont know how to write the reg expression and where to add it within my wordpress .htaccess file.

I’ve included my wordpress .htaccess below:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

My client has some deep indexed URLs, as you can see above with the Connecticut Weatherman/Meterologist. that post is the 6th result on the first page of results for a search on his name.

The new site was launched today and any help would be greatly appreciated. Thanks!

  • 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-05-27T16:40:05+00:00Added an answer on May 27, 2026 at 4:40 pm

    Try this rule:

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^davidapuzzo.com
    RewriteCond %{QUERY_STRING} ^p= [NC]
    RewriteRule blog/(.*)$ http://v1.davidapuzzo.com/blog/ [L,R=301]
    

    To redirect all URLs containing a query string to the sub-domain use the following. This will redirect all URL containing ‘?’.

    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^davidapuzzo.com
    RewriteCond %{QUERY_STRING} .
    RewriteRule blog/(.*)$ http://v1.davidapuzzo.com/blog/ [L,R=301]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I recently had this issue with a client. The code read: ini_set( sendmail_from, noreply@<current-domain>.com
Google has indexed this page http://[site-removed]/showering-accessories on my client's site which doesn't actually exist.
Well, I guess this day had to come. My client's website has been compromised
Asking this question for a friend of mine. My client had send me a
Working on a site for a client who has a dev.sitename.com subdomain for development,
I picked up a new-to-me client who had a site built in ASP.net (which
A client of mine somehow had his site lost/hacked/destroyed by gnomes and I have
I have to move a clients BlogEngine.Net site to WordPress. I have had people
Okay, I'm pretty sure that this is not possible but a client had asked
I had an idea for a client-side language other than JavaScript, and I'd like

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.