[Project_owners] php Issues

Eric H. Jung grimholtz at yahoo.com
Fri Oct 1 09:44:15 PDT 2010


Here are a few mod_rewrite examples that show how to redirect while
maintaining URL parameters. Look specifically at the use of %{REQUEST_URI}

RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.getfoxyproxy\.org$
RewriteRule .? http://getfoxyproxy\.org*%{REQUST_URI}* [R=permanent,L]

RewriteCond %{HTTPS} off
RewriteRule proxyservice/(.*)$

RewriteCond %{HTTPS} off
RewriteRule feedback/(.*)$ https://%{HTTP_HOST}*%{REQUEST_URI}*[R=permanent,L]

On Fri, Oct 1, 2010 at 12:21 PM, Pete Collins <pete at mozdevgroup.com> wrote:

> On 10/1/10 10:13 AM, David White wrote:
>> My ThunderBird addon, which invokes a php file on mozdev via a call to
>> XmlHttpRequest still fails to work due to failure of request parameters to
>> make it through the redirection. This doesn't happen if it invokes the
>> .hph.html file directly versus the .php file. So it would appear that there
>> may be an issue with XmlHttpRequest and redirection. A quick google
>> indicates that various implementations of the function fare differently with
>> redirects. I am not too sure what else I should try so that the .php file
>> can be invoked directly - thereby causing no changes by my addon's users.
>> Any tips? Thanks, David
> If you can find any tips on redirect server config maybe I can try it ...
> --pete
> --
> Pete Collins - Founder, Mozdev Group Inc.
> www.mozdevgroup.com
> Mozilla Software Development Solutions
> tel: 1-719-302-5811
> fax: 1-719-302-5813
> _______________________________________________
> Project_owners mailing list
> Project_owners at mozdev.org
> https://www.mozdev.org/mailman/listinfo/project_owners
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mozdev.org/pipermail/project_owners/attachments/20101001/d50b6691/attachment-0001.html>

More information about the Project_owners mailing list