Solved

mod_rewrite: Rewrite all requests including requests containing %2F

Posted on 2013-12-30
1
438 Views
Last Modified: 2013-12-30
I use this mod_rewrite code:
RewriteEngine On
RewriteRule .* application.php

Open in new window

http://example.com/a%2Fb does NOT get rewritten.  What can I do to make EVERYTHING be rewritten including URLS with %2F in them?
0
Comment
Question by:hankknight
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 25

Accepted Solution

by:
Cyclops3590 earned 500 total points
ID: 39746362
You might want to look at the following documentation from Apache

http://httpd.apache.org/docs/2.2/mod/core.html#allowencodedslashes

the allowencodedslashes directive might be off which could be causing your rewrite rule to not match.
0

Featured Post

Guide to Performance: Optimization & Monitoring

Nowadays, monitoring is a mixture of tools, systems, and codes—making it a very complex process. And with this complexity, comes variables for failure. Get DZone’s new Guide to Performance to learn how to proactively find these variables and solve them before a disruption occurs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question