httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <>
Subject Re: [users@httpd] re-writing URI's
Date Thu, 14 Dec 2006 15:07:26 GMT
On 12/14/06, Foster, Stephen (ASPIRE) <> wrote:
> Hi there,
> i'm having a bit of trouble getting a rewrite rule for a URI to work.
> Basically i have the following scenario,
> The user enters and this gets intercepted by another API and the
browser gets a URL sent back with a URI added including the original URL of
, my re-writing rules then re-write the first part to secure, i.e but
the URI stays non-secure ,e.g
> so the outcome to the browser is:
> What i need to do when i re-write the first part to secure is also to intercept the URI
and re-write this to secure if it comes back as non-secure, so i need the URL being sent back
to the browser to appear as follows:
> I know i can use the RewriteCond %{REQUEST_URI} context but need to be able to tell it
to find "http:" and re-write this to "https:" wherever it appears in the URI in case the developers
change it without me knowing. However if needs be then i can intercept "APPURI=http:" and
rewrite this to "APPURI=https:"
> Does that make sense to anybody??

Sure, it should be a relatively straightforward regex with
substitution.  But I'm not going to try to guess at your entire
config.  Show us what you've got already and we can perhaps tell you
what to add.


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message