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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T21:21:54+00:00 2026-05-21T21:21:54+00:00

I have an old website – written in asp. The contact form uses a

  • 0

I have an old website – written in asp. The contact form uses a querystring to decide which form the visitor sees.

If a vistor wishes to just contact me, they may do so by clicking the link to:

http://example.com/contact.asp

If they wish to submit a fault – they do so by clicking the following link

http://example.com/contact.asp?problem=true&.......

Additional parameters are also passed after problem nb: ?problem=true&Customer... – however, I only need to know if problem=true

In the new site I have two pages: contact.html, and help.html

When a visitor goes to contact.asp they are redirected to contact.html – thanks to the following redirect rule:

RewriteRule ^contact\.asp$ http://example.com/contact-us.html [R=301,L]

However, I am having MASSIVE problems trying to get
http://example.com/contact.asp?problem=true to redirect to help.html

I’ve found tons of examples – but none of them work.. the page always redirects to contact.html

I have even commented out the above rewrite rule to see if my problem=true rule was being over-ridden…. This returned a 404. My problem=true rule just doesn’t work.

I’ve been following examples such as: http://www.simonwhatley.co.uk/apache-htaccess-query-string-redirects

So to recap, I’d like to redirect contact.asp?problem=true to help.html, and contact.asp to contact.html

Many thanks in advance,

Rob

  • 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-21T21:21:55+00:00Added an answer on May 21, 2026 at 9:21 pm

    Not sure what you have tried as far as matching the query string, but the following should work.

    RewriteCond %{QUERY_STRING} ^problem=true
    RewriteRule ^contact\.asp$ http://primarysite.net/help.html [R=301,L]
    
    RewriteRule ^contact\.asp$ http://primarysite.net/contact-us.html [R=301,L]
    

    Hope that helps.

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

Sidebar

Related Questions

So I have an old website which uses an older version of smarty, as
I have old code that uses size_t which IIRC comes from cstring.h. On OS
I have a solution that has a plain old asp.net website and a winforms
I have a website which stores customer details, name, address, contact etc. A customer
I have an old website developed in classic ASP, I need to add openoffice
We are done migrating a website from old CMS to SDL Tridion. We have
I have a website developed in Umbraco CMS, I would like to re-write old
I currently have a news website setup in PHP/MYSQL that's a bit old and
I have an ActiveX control that runs on a website, where the old version
Most of the software company have old software which continue maintain, and they also

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.