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.ba...@northwestern.edu>
> *Sent:* Tuesday, August 13, 2019 5:36 PM
> *To:* users@httpd.apache.org
> *Subject:* [External] Re: [users@httpd] 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.ba...@northwestern.edu <mailto:darryl.ba...@northwestern.edu>_
> 
> (847) 467-6674
> 
>  
> 
>  
> 
> *From: *"Dorrian, William" <wd...@allstate.com <mailto:wd...@allstate.com>>
> *Reply-To: *"users@httpd.apache.org <mailto:users@httpd.apache.org>"
> <users@httpd.apache.org <mailto:users@httpd.apache.org>>
> *Date: *Tuesday, August 13, 2019 at 4:24 PM
> *To: *"users@httpd.apache.org <mailto:users@httpd.apache.org>"
> <users@httpd.apache.org <mailto:users@httpd.apache.org>>
> *Subject: *RE: [users@httpd] 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-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to