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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T22:50:28+00:00 2026-06-11T22:50:28+00:00

i have some links that i need to redirect, like: /pass-help.php?action=1&email=test@test.com to /about/help or

  • 0

i have some links that i need to redirect, like:

/pass-help.php?action=1&email=test@test.com to /about/help
or
/contests/contest-a?testa=1&testb=1 /user/index/contest

i need a way to find the action or the email in the links above because they can be anything.

maybe something like /pass-help.php?action=(\?.+)&email=(\?.+) to /about/help

but im not sure how to write the query string.

any ideas?

if so, please explain a bit so i can understand what is happening.

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-06-11T22:50:29+00:00Added an answer on June 11, 2026 at 10:50 pm

    If the query strings don’t matter, you can just ignore them:

    via mod_alias:

    Redirect 301 /pass-help.php /about/help?
    Redirect 301 /contests/contest-a /user/index/contest?
    

    via mod_rewrite:

    RewriteRule ^/?pass-help\.php$ /about/help? [L,R=301]
    RewriteRule ^/?contests/contest-a /user/index/contest? [L,R=301]
    

    Note that in the mod_alias case, there will be a stary ? at the end. That’s needed in order to get rid of the query string.

    If the query strings need to have some param names, but you don’t care about the values:

    via mod_rewrite:

    RewriteCond %{QUERY_STRING} (^|&)action=
    RewriteCond %{QUERY)STRING{ (^|&)email=
    RewriteRule ^/?pass-help\.php$ /about/help? [L,R=301]
    
    RewriteCond %{QUERY_STRING} (^|&)testa=
    RewriteCond %{QUERY_STRING} (^|&)testb=
    RewriteRule ^/?contests/contest-a /user/index/contest? [L,R=301]
    

    If the query strings need to have some param names with EXACTLY some value:

    RewriteCond %{QUERY_STRING} (^|&)action=1
    RewriteCond %{QUERY)STRING{ (^|&)email=test@test.com
    RewriteRule ^/?pass-help\.php$ /about/help? [L,R=301]
    
    RewriteCond %{QUERY_STRING} (^|&)testa=1
    RewriteCond %{QUERY_STRING} (^|&)testb=1
    RewriteRule ^/?contests/contest-a /user/index/contest? [L,R=301]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a huge file that has some lines that need to have a
I have an update panel on my page with some links that have onClick
I have some jQuery code that intercepts links clicked on a page: $(document).ready(function() {
I have some text that has HTML hyper-links in it. I want to remove
I have a HAML page that lists some links to delete things that looks
O.K. I think that's an easy one! I have a ViewMasterPage with some links
I have some text lines like that : vt_wildshade2^508^508 vt_ailleurs2^1188^1188 ... vt_high2^13652^13652 Is it
I have strings like: http://127.0.0.1:22/Test Is there some single function maybe using regular expressions
I'm using MVC with /<module>/<controller>/<action>/ have a module at example.com/module/whatever, and I need to
Can anyone help with .htaccess URL rewriting rule. I need to redirect pages 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.