Thankyou Eric! :) Eric, before running I want to confirm that this will work below? <VirtualHost *:80>
ProxyPreserveHost On ProxyPass / http://X.X.X.X:8080/login RewriteEngine On RewriteRule ^(.*/|)+(%20)+(.+)$ $1$2 [L] # remove spaces from end or before / RewriteRule ^(.+?)+(%20)+(/.*|)$ $1$2 [L] # replace spaces by - in between RewriteRule ^(^%20*)+(?:%20)+(.*)$ $1-$2 [L,R] ProxyPassReverse / http://X.X.X.X:8080/login </VirtualHost> On Sun, Jun 7, 2020 at 3:41 PM Eric Covener <cove...@gmail.com> 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-unsubscr...@httpd.apache.org > For additional commands, e-mail: users-h...@httpd.apache.org > >