ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> httpd-users
httpd-users
[users@httpd] re-writing URI's
by Stephen Foster other posts by this author
Dec 14 2006 4:10AM messages near this date
RE: [users@httpd] Simple Rewrite Question | Re: [users@httpd] re-writing URI's
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 http://www.domain.com and this gets intercepted by another API and the brows
er gets a URL sent back with a URI added including the original URL of http://www.domain.com
 , my re-writing rules then re-write the first part to secure, i.e https://www.domain.com bu
t the URI stays non-secure ,e.g http://www.domain.com

so the outcome to the browser is:

https://www.domain.com/login?APPURI=http://www.domain.com/home

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:
https://www.domain.com/login?APPURI=https://www.domain.com/home

I know i can use the RewriteCond %{REQUEST_URI} context but need to be able to tell it to fi
nd "http:" and re-write this to "https:" wherever it appears in the URI in case the develope
rs 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??

Cheers

Steve


Steve Foster | Capgemini | Telford
Shared Technology Services
T. +44 (0) 1952 296664 | www.capgemini.com
Internal: 46664

Join the Collaborative Business Experience 


===========================================================
Our e-mail domain has now changed from iraspire.com to hmrcaspire.com. Please update your ad
dress books.
===========================================================


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html>  for more info.
To unsubscribe, e-mail: users-unsubscribe@[...].org
   "   from the digest: users-digest-unsubscribe@[...].org
For additional commands, e-mail: users-help@httpd.apache.org
Thread:
Stephen Foster
Joshua Slive

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved