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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T23:39:15+00:00 2026-05-28T23:39:15+00:00

I want mod_rewrite rules for query string ?:hizzah=blah to redirect to brouahaha.html I tried

  • 0

I want mod_rewrite rules for query string ?:hizzah=blah to redirect to brouahaha.html

I tried this:

RewriteCond %{QUERY_STRING} :hizzah=blah
RewriteRule .* brouahaha.html

Note the colon in front of hizzah.

The problem: this does not work if the colon is encoded. i.e. example.com?:hizzah=blah works but example.com?%3Ahizzah=blah does not.

I know having the colon is probably a bad idea because it’s a reserved character, but its non-negotiable for now. It has to be this way.

What’s the cleanest mod_rewrite way to allow the colon to be either plain or encoded?

  • 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-28T23:39:16+00:00Added an answer on May 28, 2026 at 11:39 pm

    Try

    RewriteCond %{QUERY_STRING} (:|\%3A)hizzah=blah [NC]
    RewriteRule ^ brouahaha.html [L]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to redirect all requests for index.html|php|php5 to http://www.domain.co.uk/ using mod_rewrite and I've
I am running Apache witha redirect rule like this: RewriteCond %{HTTP_HOST} ^1st-domain\.com RewriteRule ^(.*)$
I would like to remove the query string from the URL using mod_rewrite (.htaccess),
I have some difficulties with the mod_rewrite rules. I want to rewrite any request
I have html static files on my server. I want the access rules as
So I want to use mod_rewrite to transform: random_name.com/main.php?user=$user into random_name.com/$user (the $user is
I'm using Mod Rewrite for IIS 7.0 from iis.net and want to redirect requests:
I can't get my head around exactly what I want to do using mod_rewrite.
So here is my problem. I want to redirect name.domain.com/trips/1 to domain.com?username=name&trip=1 using modrewrite.
I am using html, javascript & mod_python. I want to submit html form. To

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.