Re: Apache URL rewrite rules
Date: Mon, 25 Apr 2016 22:32:27 +0000
Message-ID: <CALn1tDtnsU5r-eM20J+m6bkBkN3MeWFdwHe2+RBe_ah2dVchmw_at_mail.gmail.com>
Hi Leroy,
Our rewrites for our Apex apps look like this.:
RewriteEngine On
RewriteCond %{HTTP_HOST} apexapp.in.blah.com.au RewriteRule ^\/$
https://apexapp.int.blah.com.au:/pls/apex/f\?p=666 [R,L,NC]
Regards - Stojan.
On Tue, Apr 26, 2016 at 6:34 AM Mark J. Bobak <mark_at_bobak.net> wrote:
> Hi Leroy,
>
> It may be easier for you to use a VirtualHost definition it httpd.conf.
>
> Something like this:
> <VirtualHost *:80>
> ServerAdmin lkemnitz_at_uwsa.edu
> ServerName devdata.uwsa.edu
> Redirect /Facilities_Lease
> http://devdata.uwsa.edu:8181/ords/f?p=102:1
> ErrorLog logs/your_custom_error_log_name
> CustomLog your_custom_access_log_name
> </VirtualHost>
>
> I am *not* asn Apache or web expert by any means, but we do a lot of this
> type of redirection, and this is how we do it. Easier than trying to do
> URL rewrite rules.
>
> Hope that helps,
>
> -Mark
>
> On Mon, Apr 25, 2016 at 3:17 PM, Leroy Kemnitz <lkemnitz_at_uwsa.edu> wrote:
>
>> All –
>>
>>
>>
>> I have a nice URL that I want Apache to rewrite into an ugly one for
>> Apex. I seem to be not doing the syntax correctly.
>>
>>
>>
>> I want to convert –
>>
>> https://devdata.uwsa.edu/Facilities_Lease
>>
>> to
>>
>> http://devdata.uwsa.edu:8181/ords/f?p=102:1
>>
>>
>>
>> I have been using ajp protocol and this is what I have so far.
>>
>> ------------------------------------------
>>
>> RewriteCond %{REQUEST_URI} /Facilities_Lease
>>
>> RewriteCond %{QUERY_STRING} ^$
>>
>> RewriteRule ^Facilities_Lease ajp://localhost:8309/ords/f?p=102 [R,P,L]
>>
>> ProxyPassReverse / ajp://localhost:8309/
>>
>> -----------------------------------------
>>
>>
>>
>> Does anyone know how to write these rules? I could use some help.
>>
>>
>>
>> My browser goes no where and shows no errors.
>>
>>
>>
>>
>>
>> LeRoy
>>
>>
>>
>
>
-- http://www.freelists.org/webpage/oracle-lReceived on Tue Apr 26 2016 - 00:32:27 CEST