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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T11:00:33+00:00 2026-06-13T11:00:33+00:00

I successfully mass migrated a WordPress site to Drupal. Unfortunately in WordPress, the content

  • 0

I successfully mass migrated a WordPress site to Drupal. Unfortunately in WordPress, the content URL’s were something like http://www.example.org/?p=123. My domain is still the same, but I want to do a redirect via htaccess as Drupal will not allow URL’s to be http://www.example.org/?p=123. In other words, the content does not have the same URL as it did in WordPress. For example, the new Drupal URL would be something like www.example.org/content/MyNewPage

I tried this in my .htaccess file and it does not work

Redirect 301 /\?p=375 http://www.example.org/content/MyNewPage

So I tried the below, but it does not work either.

Redirect 301 /\?p\=375 http://www.example.org/content/MyNewPage

Just as a test, I tried the below and it worked.

Redirect 301 http://www.example.org http://www.google.com

I made sure that my Redirect rule is at the top of the list in my .htaccess so it will be evaluated first. How do I fix this?

  • 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-13T11:00:34+00:00Added an answer on June 13, 2026 at 11:00 am

    neither Redirect nor RedirectMatch allow you to specify a query string for the redirect source.
    [Source]

    You have to use mod-rewrite for redirecting based on query string:

    RewriteCond %{QUERY_STRING}  ^p=375$
    RewriteRule (.*)  http://www.example.org/content/MyNewPage?  [R=301,L]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I successfully write to a file in the folder which run example: // I
I successfully implemented the OpenCV square-detection example in my test application, but now need
I successfully installed Guake on CentOS using the guide found here: http://ww.centos.org/modules/newbb/viewtopic.php?viewmode=threaded&order=ASC&topic_id=33556&forum=56&move=next&topic_time=1317663060 I've added
I successfully deployed my Django site to IIS7 but I still have problems about
Successfully used jquery-infinite-carousel in the past but for my current project I need it
I successfully connected to my database when it was SQL Server 2008 R2. However
I successfully compiled the following program simple.cc: #include <gtkmm.h> int main (int argc, char
After successfully opening Pop3Folder , and retrieving messages from it, I then sometimes get
After successfully acquiring an oauth_token for a user, I am able to get successful
I successfully migrate Joomla from 1.0 to 1.5.0 stable, while searching for migrate 1.5.0

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.