Thanks, but I am not seeking mod_rewrite headers... I'm trying to get all the URLs being requested from the apache server in full, including any hidden values.
Sorry again for the late response, its been crazy in the gutters.
Hi Chris, sorry for the late reply!
Actually, the first URL seen by the server (from the logs) is usually like the below, and I really cant tell all of the strings and how they will appear (like TextfromUser did). I am just sure there will be a 3-4 digit number sent, and it will be between...
{HTTP:whoisd-ussd-message} represents a string of characters that is sent to apache server from the server that's trying to GET an URL. It can be anything from a single digit to a phone number, or a name, etc.
For instance from this log:
192.168.2.251 - - [11/Nov/2014:02:42:17 +0100] "-"...
Hi Chris,
I think I have gotten what I need at this point:
RewriteCond %{HTTP:whoisd-ussd-message} ^\d{3,4}$
#do not honor if string is found
RewriteCond %{QUERY_STRING} !string= [NC]
RewriteRule ^/original/individual.do(.*)$ https://some.other/site/011$1 [L,P]
I just have one more question...
Hi Chris,
and thanks for the reply, I have changed things like you advised, but its still happening. What I have there is now:
RewriteCond %{HTTP:whoisd-ussd-message} ^\d{3,4}$
RewriteRule ^/original/individual.do(.*)$ https://some.other/site/011$1 [L,P]
It is still catching random 3-4 digit...
Hi!
Please I need some assistance with mod_rewrite, which works a little TOO well Smile
I am trying to capture 3-4 digits when sent as part of a URL, for them to be proxied to another URL. I have no control over how the source sends this data, I am supposed to redirect it. Which works...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.