You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by David Tkacik <dt...@healthcoachinstitute.com> on 2018/05/18 12:00:58 UTC

[users@httpd] Re: RedirectMatch escaping AMP ?

Could someone help me where the &amp; is comming from ? I’ve tried RewriteRules and the outcome is the same.

Thanks !


> On 18 May 2018, at 11:28, David Tkacik <dt...@healthcoachinstitute.com> wrote:
> 
> Hello Guys,
> 
> I have a condition like this:
> 
> RedirectMatch ^/g/(.*) https <https://www.${apache_hostname}/folder1/?ec=$1&ea=EBH&el=GCC>: <https://www.${apache_hostname}/folder1/?ec=$1&ea=EBH&el=GCC>//www.${APACHE_HOSTNAME}/folder1/?ec=$1&ea=EBH&el=GCC <https://www.${apache_hostname}/folder1/?ec=$1&ea=EBH&el=GCC>
> So when I do CURL to that virtualhost running that condition like this https://www.example.com/g/1234 <https://www.example.com/g/1234>
> it gives me back this:
> 
> https://www.example.com/folder1/?ec=1234&amp;ea=EBH&amp;el=GCC <http://www.example.com/folder1/?ec=1234&amp;ea=EBH&amp;el=GCC>
> Is there a way to escape this ? Why it's substituting the "&amp ;" ?
> 
> Many Thanks !
> 
> David


Re: [users@httpd] Re: RedirectMatch escaping AMP ?

Posted by David Tkacik <dt...@healthcoachinstitute.com>.
Hey Eric,

Thanks for the reply. At the end it did the job. It was just curl giving me this. With a standard web-browser it works just fine.
I even tried to [NE] flag or the [B] flag but via curl I was getting the same results.

Thansk !

> On 18 May 2018, at 13:23, Eric Covener <co...@gmail.com> wrote:
> 
> On Fri, May 18, 2018 at 8:00 AM, David Tkacik
> <dt...@healthcoachinstitute.com> wrote:
>> Could someone help me where the &amp; is comming from ? I’ve tried
>> RewriteRules and the outcome is the same.
> 
> It's escaping the literal & in your target.
> 
> With rewrite, try the [NE] flag.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Re: RedirectMatch escaping AMP ?

Posted by Eric Covener <co...@gmail.com>.
On Fri, May 18, 2018 at 8:00 AM, David Tkacik
<dt...@healthcoachinstitute.com> wrote:
> Could someone help me where the &amp; is comming from ? I’ve tried
> RewriteRules and the outcome is the same.

It's escaping the literal & in your target.

With rewrite, try the [NE] flag.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org