Re: How can I simplify this URL to just the hostname with rewrite rules?

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

 



You don't need to escape characters in the target of the RewriteRule.

On 14/08/19 03:01 PM, Dorrian, William wrote:
> Hi Darryl.
> 
>  
> 
> I was able to do this with:
> 
>  
> 
> RewriteEngine on
> 
> RewriteRule ^/$
> https://test.thing.seabass.com/q3/app\?service\=external/EmployerPages\:DudeLogin
> <https://test.thing.seabass.com/q3/app/?service\=external/EmployerPages\:DudeLogin>
> 
>  
> 
> Escaping the special characters (as you advised), plus escaping the
> colon helped me fix.
> 
>  
> 
> Thanks!
> 
> Bill D.
> 
>  
> 
> *From:* Darryl Philip Baker <darryl.baker@xxxxxxxxxxxxxxxx>
> *Sent:* Tuesday, August 13, 2019 5:36 PM
> *To:* users@xxxxxxxxxxxxxxxx
> *Subject:* [External] Re:  How can I simplify this URL to
> just the hostname with rewrite rules?
> 
>  
> 
> I agree that those are the stumbling blocks. If you haven’t already try
> escaping them both or use the ASCII equivilents
> 
>  1. Redirect permanent
>     “/q3/app\?service\=external/EmployerPages:DudeLogin” 
>https://test.thing.seabass.com
>     <https://urldefense.proofpoint.com/v2/url?u=https-3A__test.thing.seabass.com&d=DwQGaQ&c=gtIjdLs6LnStUpy9cTOW9w&r=T47OVmVp_3gm3njCU36TeWTS5W9ZoAxPnQ-zGHLl0rs&m=R_93a1RnrlJ3CzdMk72RUw0-P60wShxObvCY53UbuwQ&s=7-YzxaROEkzG72TjeoPOCvRBLTEvJGxVXCdwyGIl8vM&e=>”
>  2. Redirect permanent
>     “/q3/app%3Fservice%3Dexternal/EmployerPages:DudeLogin” 
>https://test.thing.seabass.com
>     <https://urldefense.proofpoint.com/v2/url?u=https-3A__test.thing.seabass.com&d=DwQGaQ&c=gtIjdLs6LnStUpy9cTOW9w&r=T47OVmVp_3gm3njCU36TeWTS5W9ZoAxPnQ-zGHLl0rs&m=R_93a1RnrlJ3CzdMk72RUw0-P60wShxObvCY53UbuwQ&s=7-YzxaROEkzG72TjeoPOCvRBLTEvJGxVXCdwyGIl8vM&e=>”
> 
>  
> 
> *Darryl Baker * (he/him/his)
> 
> Sr. System Administrator
> 
> Distributed Application Platform Services
> 
> *Northwestern University*
> 
> 1800 Sherman Ave.
> 
> Suite 6-600 – Box #39
> 
> Evanston, IL  60201-3715
> 
> _darryl.baker@xxxxxxxxxxxxxxxx <mailto:darryl.baker@xxxxxxxxxxxxxxxx>_
> 
> (847) 467-6674
> 
>  
> 
>  
> 
> *From: *"Dorrian, William" <wdorr@xxxxxxxxxxxx <mailto:wdorr@xxxxxxxxxxxx>>
> *Reply-To: *"users@xxxxxxxxxxxxxxxx <mailto:users@xxxxxxxxxxxxxxxx>"
> <users@xxxxxxxxxxxxxxxx <mailto:users@xxxxxxxxxxxxxxxx>>
> *Date: *Tuesday, August 13, 2019 at 4:24 PM
> *To: *"users@xxxxxxxxxxxxxxxx <mailto:users@xxxxxxxxxxxxxxxx>"
> <users@xxxxxxxxxxxxxxxx <mailto:users@xxxxxxxxxxxxxxxx>>
> *Subject: *RE:  How can I simplify this URL to just the
> hostname with rewrite rules?
> 
>  
> 
> Redirect permanent “/q3/app\?service=external/EmployerPages:DudeLogin” 
>https://test.thing.seabass.com
> <https://urldefense.proofpoint.com/v2/url?u=https-3A__test.thing.seabass.com&d=DwQGaQ&c=gtIjdLs6LnStUpy9cTOW9w&r=T47OVmVp_3gm3njCU36TeWTS5W9ZoAxPnQ-zGHLl0rs&m=2OmUz6HafSUtEz0EEeO4tK_DoyzlEBq-h2pjFWnEyxM&s=XvMwBz1tTA3kKXaFYYhF0yfe3JuGEzX3-90UAgbEVB0&e=>
> 


---------------------------------------------------------------------
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