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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T08:39:51+00:00 2026-05-20T08:39:51+00:00

I have this problem where I switched CMS from the old one to the

  • 0

I have this problem where I switched CMS from the old one to the new one so I am trying to redirect urls properly.

Here are some example urls I wanted to convert:

#-1) http://www.mysite.com/?dispatch=search_data&features=hash_tag
#-2) http://www.mysite.com/index.php?dispatch=search_data&features=hash_tag

Basically both of them are identical except the first one doesn’t have index.php in the url.

I got the following to code to partially work:

 RewriteCond %{QUERY_STRING} dispatch=(.*)
 RewriteRule ^$ http://www.mysite.com/? [L,R=301]

The above code works for #-1 (when there is no index.php) but when there is index.php it doesn’t work.

Any help / guidance is much appreciated.

Thanks

____________UPDATE_______________

As per request, here is what the the target url should be:
http://www.mysite.com/

  • 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-20T08:39:52+00:00Added an answer on May 20, 2026 at 8:39 am

    What do you mean it “works”?

    You should probably post an example of what you want the new url to look like given the old url.

    But in any case, part of your problem is that the RewriteRule line is specifically excluding index.php and any other page on your site.

    What you wrote basically tranlates to this:

    if the query string contains "dispatch=...":
        redirect requests FOR THE HOME PAGE ONLY (^$) to http://www.mysite.com/
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have problem with this method in NLog library: NLog.Targets.Wrappers.AsyncTargetWrapper.ProcessPendingEvents(object state) It consume too
I recently switched to wxPython 2.9 from 2.8. I ran one of my programs
The easiest way to see this problem will be to run the sample project
I have an rather odd problem with Visual Studio once more. I have a
See update below. This is driving me mad. I have followed all the instructions
I have been developing on Android with Eclipse for a while, and I recently
I recently switched to Visual Studio 2010 and for Intellisense not to take half
The is the code for the fetchRequest in viewDidLoad and the code is followed
I've been using Git as a fat client for a Subversion repo, which has

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.