Page 1 of 1

Redirection problem in IE6

Posted: Thu Jul 23, 2009 11:58 pm
by amold
Hi,

We are facing one problem only on IE6. We have used one javascript code for redirecting page after user is login. It works fine on other browser, but on IE6 after user is logged in it is showing blank page and after refresh it will show the appropriate page.

JavaScript code:
window.location.href='page_name.php'

First we thought this is problem only for JavaScript but we created one test php page and added only three links by clicking on the link it will go to the site, but on first instance it is showing blank page on IE6.

We have some other sites on same server and they all are working fine with the same code, only one domain is giving problem in IE6.

I am using javascript only when user is logged it.

But if I click on the "index.php" which is not javascript is a simple link still it is displaying blank page on IE6. :(

Does it is related to some settings for that Domain in Apache or it is something else?

Waiting for reply...

Thanks in advance.

Regards,

Re: Redirection problem in IE6

Posted: Fri Jul 24, 2009 12:25 am
by requinix
Don't use JavaScript to redirect people.

Code: Select all

header("Location: page_name.php");
exit;
Just do that before you output anything. Works with every browser.

Re: Redirection problem in IE6

Posted: Fri Jul 24, 2009 12:29 am
by amold
Hi tasairis,

Thanks for your reply.

I am using javascript only when user is logged in, But I am facing problem even if I click on the "index.php" link which is not a javascript.

Regards,

Re: Redirection problem in IE6

Posted: Fri Jul 24, 2009 1:01 am
by requinix
Does it show index.php in the address bar?

Be more descriptive. What do you see? What do you not see? What's happening and what should it be doing instead?

Re: Redirection problem in IE6

Posted: Fri Jul 24, 2009 1:32 am
by amold
Hi tasairis,

Thanks for your reply,

Say http://www.sitename.com/test_cv.php this is the site test page URL and in that page I have only three links.

1) First link is http://www.sitename.com/
2) Second link is http://www.sitename.com/index.php
3) Third link is index.php

when I open the same test page on IE6 browser and click on any of the link it does not change the URL in address bar it remains same as test_cv.php and when I refresh the page it will show the actual content for the site.

Please do let me know if you need more clarification for the problem.

Regards,

Re: Redirection problem in IE6

Posted: Fri Jul 24, 2009 10:18 am
by amold
Hi All,

I have created the test page.

http://www.cvpartnersllc.net/test_cv.php

Please have a look on IE6 where it is showing blank page.

Regards,

Re: Redirection problem in IE6

Posted: Mon Jul 27, 2009 7:12 am
by amold
To be more specific.

Even simple link "index.php" first show blank page in IE6 and after refresh it will show the content for the same page.

This happens only on IE6 rest of the browser works well