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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T08:46:26+00:00 2026-06-15T08:46:26+00:00

I am trying to create a conditional rule if it matches (images, stylesheets, javascript)

  • 0

I am trying to create a conditional rule if it matches (images, stylesheets, javascript) then do nothing to the url, if url does not include donate the change from https to http

Her is what I have now.

    RewriteEngine On

    RewriteCond %{QUERY_STRING} images [OR]
    RewriteCond %{QUERY_STRING} stylesheets [OR]
    RewriteCond %{QUERY_STRING} javascript
    RewriteRule ^.*$ - [NC,L] 

RewriteCond %{QUERY_STRING} !donate
    RewriteCond %{REQUEST_URI} !donate
RewriteRule (.*) http://www.creative-capital.org$1/ [R]
  • 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-15T08:46:27+00:00Added an answer on June 15, 2026 at 8:46 am

    I’m not sure what you are trying to achieve, but for starters, QUERY_STRING only includes what comes after the ? in the url. If that’s not what you want, then you probably want to use THE_REQUEST. Also, why don’t you just place all of your conditions (in the negative) on the second rule instead of creating a “do nothing” rule.

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

Sidebar

Related Questions

I'm trying to create an conditional Rewrite Rule using an .htaccess file and Apache.
I am trying to create a conditional edit button, i.e. create if record does
I am using ExpressionEngine 2.2.1 and am trying to create a conditional that will
I'm trying to create a conditional overlay for firefox's new addon manager in minefield
I'm trying to dynamically add a css stylesheet rule using javascript, something like example
I am trying to create an object that is capable of handling query-like conditional
I'm trying to create a rule to match all classes beginning with icon- which
I've been trying to create a conditional where clause for my query below but
Im trying to create a conditional statement that iterates through an array of nodes
I'm trying to create a conditional sum, in order to calculate an average. The

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.