NSW42 Posted April 14, 2011 Share Posted April 14, 2011 This is my issue, I have a redirection for firefox users when they view a members profile, the problem is the below code works fine for IE users but in FF it shows the code of the script and does not redirect, now I thought it may have been a server side issue with the text/print but text/html is enabled so I'm at one big loss as to what the hell is going on, just a heads up, the said file has a slightly different ext the normal "profile.msnw", but as I said it works fine in IE and certain other sites I know that use the exact same code and file name. <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <script language=javascript> <!--// function go_redirect() { location.href="./proredirect.php?" + document.location.search.substring(1); } //--> </script> </head> <BODY Onload="go_redirect()"></BODY> </html> Link to comment https://forums.phpfreaks.com/topic/233682-redirect-firefox/ Share on other sites More sharing options...
requinix Posted April 14, 2011 Share Posted April 14, 2011 Do a better redirect with header. Link to comment https://forums.phpfreaks.com/topic/233682-redirect-firefox/#findComment-1201436 Share on other sites More sharing options...
NSW42 Posted April 14, 2011 Author Share Posted April 14, 2011 Tried it all dude, no matter what codes I put in that file, ff wont redirect it and shows the coding, I still keep thinking it's server side for some reason, but cant put my finger on it. Link to comment https://forums.phpfreaks.com/topic/233682-redirect-firefox/#findComment-1201464 Share on other sites More sharing options...
NSW42 Posted April 14, 2011 Author Share Posted April 14, 2011 Ok solved, Firefox is a nice browser still but didnt reconise the extension. Link to comment https://forums.phpfreaks.com/topic/233682-redirect-firefox/#findComment-1201476 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.