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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:04:38+00:00 2026-05-28T07:04:38+00:00

I have an htacess file for apache that isn’t working properly. I have a

  • 0

I have an htacess file for apache that isn’t working properly.

I have a default cactch-all that grabs all requests however it’s still catching the matched URL above it (ajax/*). I thought that condition to match urls not containing ajax would stop it but it isn’t.

RewriteRule ^ajax/(.*)$ process_lite.php [QSA,L]

RewriteRule ^resources/(.*)$ resources/$1 [L]
RewriteCond %{REQUEST_URI} !\.(css|jpg|js|gif|png)$
RewriteCond %{REQUEST_URI} !^ajax
RewriteRule ^(.*)$ process.php [QSA,L]

Can someone help me out?

  • 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-28T07:04:39+00:00Added an answer on May 28, 2026 at 7:04 am

    It’s probably because the first rule matches /ajax/ requests and rewrites it to /process_lite.php, thus the RewriteCond %{REQUEST_URI} !^ajax doesn’t match since the URI is now process_lite.php. The regular expression you use won’t match anything anyways because REQUEST_URI variable will start with a leading slash. You can try changing the condition to:

    RewriteCond %{REQUEST_URI} !^/process_lite.php
    

    Additionally, the “resources” rule doesn’t seem to do anything except end rewriting, you could change it to this if that’s the goal:

    RewriteRule ^resources/ - [L]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My .htaccess file isn't working. I have checked that it is in the root
I have a RewriteRule in a .htaccess file that isn't doing anything. How do
I have an .htaccess file that's using several rewrite rules. These rules aren't working
I have a .htaccess file in a directory that is supposed to redirect all
I have a .htaccess file in the root of a website: /var/www/mywebsite/htdocs/.htacess and I
I have a joomla application working on Apache.To improve site performace we have written
I have a query in working with Java that are easily maintained in PHP
I am using Apache/2.2.17 (Win32) PHP/5.3.0. I have .htaccess file in one of my
I've noticed that Magento stores MySQL connection details in an XML file which isn't
I have a .htaccess file that looks like this: SetEnv APPLICATION_ENV development RewriteEngine On

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.