Re: Mod_rewrite removing white spaces from outside url.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





Here are my logs as well.

Eric, 


71.75.229.92 - - [13.56.11.156/sid#5646ee71d550][rid#7f5b5000ea70/initial] init rewrite engine with requested uri /
[Sun Jun 07 19:59:35.067175 2020] [rewrite:trace3] [pid 5829:tid 140030530008832] mod_rewrite.c(470): [client 71.75.229.92:59917] 71.75.229.92 - - [13.56.11.156/sid#5646ee71d550][rid#7f5b5000ea70/initial] applying pattern '^(.*/|)+(%20)+(.+)$' to uri '/'
[Sun Jun 07 19:59:35.067212 2020] [rewrite:trace3] [pid 5829:tid 140030530008832] mod_rewrite.c(470): [client 71.75.229.92:59917] 71.75.229.92 - - [13.56.11.156/sid#5646ee71d550][rid#7f5b5000ea70/initial] applying pattern '^(.+?)+(%20)+(/.*|)$' to uri '/'
[Sun Jun 07 19:59:35.067240 2020] [rewrite:trace3] [pid 5829:tid 140030530008832] mod_rewrite.c(470): [client 71.75.229.92:59917] 71.75.229.92 - - [13.56.11.156/sid#5646ee71d550][rid#7f5b5000ea70/initial] applying pattern '^(^%20*)+(?:%20)+(.*)$' to uri '/'
[Sun Jun 07 19:59:35.067249 2020] [rewrite:trace1] [pid 5829:tid 140030530008832] mod_rewrite.c(470): [client 71.75.229.92:59917] 71.75.229.92 - - [13.56.11.156/sid#5646ee71d550][rid#7f5b5000ea70/initial] pass through /


On Sun, Jun 7, 2020 at 3:41 PM Eric Covener <covener@xxxxxxxxx> wrote:
> Our applications returning an outside url
In a redirect? In HTML?

> RewriteRule ^(.*/|)[\s%20]+(.+)$ $1$2 [L]
If there is a literal %20 I don't think this should be in square
brackets.  I don't think the \s will ever match so I would drop it at
the same time.

> We want to return this url without spaces because it fails.

The rewrite rules don't change what's "returned" they modify the URL
requested on the server. Can you attach your rewrite:trace8 output
that fails to modify the URL w/ the improvements above?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux