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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:31:54+00:00 2026-05-27T05:31:54+00:00

Earlier the admin RewriteRule was effecting scripts/admin.js until I added the RewriteCond. Then I

  • 0

Earlier the admin RewriteRule was effecting scripts/admin.js until I added the RewriteCond.

Then I noticed that scripts/members.js was being effected by the same rule with the member context.

I added the exact same RewriteCond after as is below…

RewriteEngine on
RewriteCond %{REQUEST_URI} !\.(css|js|zip)$
RewriteRule .*/admin(.+) admin$1 [QSA]
RewriteCond %{REQUEST_URI} !\.(css|js|zip)$
RewriteRule .*/members(.+) members$1 [QSA]

Instead of having to manually add a RewriteCond every time to deal with issues how can I merge these rules please?

RewriteRule .*/admin(.+) admin$1 [QSA]
RewriteRule .*/blog(.+) blog$1 [QSA]
RewriteRule .*/forums(.+) forums$1 [QSA]
  • 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-27T05:31:54+00:00Added an answer on May 27, 2026 at 5:31 am

    You can merge your three checks into one like this:

    RewriteCond %{REQUEST_URI} !\.(css|js|zip)$
    RewriteRule .*/(admin|blog|forms)(.+) $1$2 [QSA]
    

    But it does seem like a rule to simply stop processing for js/css files will be a better option for you, unless you actually need rules applied to them for some reason.

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

Sidebar

Related Questions

I mentioned in one of my earlier questions that I'm reading book C++ Coding
I asked this question earlier today. After trying out suggestions from a few members,
Earlier I was taught how to select and concat in a query (Used that
I've posted this question in gis.stackexchange earlier but I'm not sure if that was
I asked this question in the DataDynamics forum earlier today. I thought that maybe
I have developed a PowerPoint add-in for versions 2003 and earlier that generates a
Earlier today a question was asked regarding input validation strategies in web apps .
Earlier this week I ask a question about filtering out duplicate values in sequence
Earlier I asked this question How to correctly unit test my DAL? , one
Earlier versions of the Notes client would automatically turn a sent URL into a

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.