a page currently in HTTPS, I force the client to redirect to another
page using HTTP under the same domain (e.g. abc.com), i.e.
header("Location: http://www.abc.com/index.php");
IE successfully redirect to HTTP,
but FF & Opera stay on the HTTPS
any suggestions?
thanks. 8 5033
On Jun 6, 7:53 am, howa <howac...@gmail.comwrote:
a page currently in HTTPS, I force the client to redirect to another
page using HTTP under the same domain (e.g. abc.com), i.e.
header("Location:http://www.abc.com/index.php");
IE successfully redirect to HTTP,
but FF & Opera stay on the HTTPS
any suggestions?
thanks.
I just dealt with this, and I ended up using an .htaccess file to
rewrite http or https as appropriate. Have you considered this
approach?
On Jun 6, 8:53 pm, howa <howac...@gmail.comwrote:
a page currently in HTTPS, I force the client to redirect to another
page using HTTP under the same domain (e.g. abc.com), i.e.
header("Location:http://www.abc.com/index.php");
IE successfully redirect to HTTP,
but FF & Opera stay on the HTTPS
any suggestions?
Use HTTP sniffers (say, LiveHTTPHeaders) or post the URL.
--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/
On Jun 7, 12:35 am, e_matt...@hotmail.com wrote:
On Jun 6, 7:53 am, howa <howac...@gmail.comwrote:
a page currently in HTTPS, I force the client to redirect to another
page using HTTP under the same domain (e.g. abc.com), i.e.
header("Location:http://www.abc.com/index.php");
IE successfully redirect to HTTP,
but FF & Opera stay on the HTTPS
any suggestions?
thanks.
I just dealt with this, and I ended up using an .htaccess file to
rewrite http or https as appropriate. Have you considered this
approach?
you mean mod_rewrite or just apache redirect?
On Jun 6, 8:43 am, howa <howac...@gmail.comwrote:
On Jun 7, 12:35 am, e_matt...@hotmail.com wrote:
On Jun 6, 7:53 am, howa <howac...@gmail.comwrote:
a page currently in HTTPS, I force the client to redirect to another
page using HTTP under the same domain (e.g. abc.com), i.e.
header("Location:http://www.abc.com/index.php");
IE successfully redirect to HTTP,
but FF & Opera stay on the HTTPS
any suggestions?
thanks.
I just dealt with this, and I ended up using an .htaccess file to
rewrite http or https as appropriate. Have you considered this
approach?
you mean mod_rewrite or just apache redirect?
I'm not sure exactly what it's called, but this is how it works. I
have one folder containing all the pages that should only be served
over https. In that folder, I have an htaccess file that contains the
following lines:
RewriteEngine On
RewriteCond %{SERVER_PORT} !443
RewriteRule (.*) https://%{SERVER_NAME}%{REQUEST_URI}
That ensures any request to this folder is served over https. There
are many links out from this folder, so following one of those links
might keep the user on https longer than necessary. So, in the public
html folder there is an htaccess file with these lines:
RewriteEngine On
RewriteCond %{SERVER_PORT} 443
RewriteRule (.*) http://%{SERVER_NAME}%{REQUEST_URI}
Works well so far.
On Jun 7, 12:54 am, e_matt...@hotmail.com wrote:
>
I'm not sure exactly what it's called, but this is how it works. I
have one folder containing all the pages that should only be served
over https. In that folder, I have an htaccess file that contains the
following lines:
ok, thx, i will try that!
but i want to confirm, are yo having the same problem, i.e. IE work,
but FF didn't work when just setting using header("Location: ...") ?
On Wed, 06 Jun 2007 19:01:24 +0200, howa <ho******@gmail.comwrote:
On Jun 7, 12:54 am, e_matt...@hotmail.com wrote:
>> I'm not sure exactly what it's called, but this is how it works. I have one folder containing all the pages that should only be served over https. In that folder, I have an htaccess file that contains the following lines:
ok, thx, i will try that!
but i want to confirm, are yo having the same problem, i.e. IE work,
but FF didn't work when just setting using header("Location: ...") ?
It could very well be a security measure they've implemented (haven't
tested it though). Normally, these are also the browsers that in default
setting will alert you when leaving a secure connection, so it might be
that instead of checking the redirects they require the same or better
security on redirects.
--
Rik Wasmus
On Jun 6, 8:01 am, howa <howac...@gmail.comwrote:
On Jun 7, 12:54 am, e_matt...@hotmail.com wrote:
I'm not sure exactly what it's called, but this is how it works. I
have one folder containing all the pages that should only be served
over https. In that folder, I have an htaccess file that contains the
following lines:
ok, thx, i will try that!
but i want to confirm, are yo having the same problem, i.e. IE work,
but FF didn't work when just setting using header("Location: ...") ?
I did not even get far enough with redirects to notice an issue with
IE vs. FF. Redirects worked on FF, but I ended up creating an
"ensureHTTPS" file and "ensureHTTP" file, and including them as
appropriate on all pages. Ugly maintenance when you need to include
one or the other on every page. Two access files took care of
everything. Also, I think php will load the whole page and then
execute the redirect, which is unnecessary work.
On Wed, 06 Jun 2007 08:53:08 -0700, howa <ho******@gmail.comwrote:
>a page currently in HTTPS, I force the client to redirect to another page using HTTP under the same domain (e.g. abc.com), i.e.
header("Location: http://www.abc.com/index.php");
IE successfully redirect to HTTP,
but FF & Opera stay on the HTTPS
Works as expected for me; Opera 9.21, Firefox 2.0.0.4, IE 7.
--
Andy Hassall :: an**@andyh.co.uk :: http://www.andyh.co.uk http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: deko |
last post by:
I have a login page that is supposed to redirect the user to his private
page after login. But header("Location: $url") does not work after I set...
|
by: Akimeu |
last post by:
Hello all... I have a site running http/https on it. I would like to
redirect all http incoming requests to the https (SSL). Unfortunately, what...
|
by: Bob Hansen |
last post by:
I am using the following code in my default.asp page to redirect the page
from HTTP to HTTPS
<%
if Request.ServerVariables("HTTPS") = "off"...
|
by: Robert Gordon |
last post by:
I now realize I probably should have tried posting this on the IIS board
first..
I am running OWA 2003 Server as Front End server to my Exchange...
|
by: E |
last post by:
I have a login page that's https and after logging in should redirect to the
home page http://www.example.com
<form id="Form1" method="post"...
|
by: scottyman |
last post by:
I can't make this script work properly. I've gone as far as I can with
it and the rest is out of my ability. I can do some html editing but
I'm...
|
by: Sergej Prokoviev |
last post by:
We are running our site at www.waynesavings.com on secure hosting
(Server 2003, IIS). We are using a custom 403.4 error page (called
403_4.asp,...
|
by: sbettadpur |
last post by:
Hi everybody,
Iam facing problem with redirecting http: connection to https:
Here iam Running my scripts on Apache using normal http request......
|
by: jdwfly |
last post by:
Just before I go an tell my sys admin that the server has problems I wanted to run this by everyone on here. Basically we have a few pages that need...
|
by: concettolabs |
last post by:
In today's business world, businesses are increasingly turning to PowerApps to develop custom business applications. PowerApps is a powerful tool...
|
by: teenabhardwaj |
last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
|
by: Kemmylinns12 |
last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
|
by: jalbright99669 |
last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
|
by: antdb |
last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine
In the overall architecture, a new "hyper-convergence" concept was...
|
by: Matthew3360 |
last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function.
Here is my code.
...
|
by: Matthew3360 |
last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
|
by: Arjunsri |
last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
|
by: WisdomUfot |
last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
| |