ICTCity Posted June 19, 2012 Posted June 19, 2012 It's ok, just redirect the 404 from http to https. Your cert is installed correctly. Quote -------------------------------------------------------- Tu peux aussi crire en franais. Du kannst auch auf Deutsch schreiben. Puoi scrivere anche in italiano. --------------------------------------------------------
iphonogasm Posted June 19, 2012 Author Posted June 19, 2012 this doesnt appear to work either Internal server errorhas occured http://megahosting.co.nz The redirection page Redirecting... function redirectHttpToHttps() { var httpURL= window.location.hostname + window.location.pathname + window.location.search var httpsURL= "https://" + httpURL window.location = httpsURL } redirectHttpToHttps() Quote
ICTCity Posted June 19, 2012 Posted June 19, 2012 what the ... http://support.microsoft.com/kb/975341/en-us Try the first scenario, of course change OWA with your site :P. it should work because I don't understand why you have INTERNAL SERVER ERROR -.- Quote -------------------------------------------------------- Tu peux aussi crire en franais. Du kannst auch auf Deutsch schreiben. Puoi scrivere anche in italiano. --------------------------------------------------------
iphonogasm Posted June 19, 2012 Author Posted June 19, 2012 noooo i have internal server errors everywhere now lol Quote
iphonogasm Posted June 19, 2012 Author Posted June 19, 2012 ok i deleted my web.config and all seems ok now back to square 1 ) LOVE IT! Quote
ICTCity Posted June 19, 2012 Posted June 19, 2012 Ok now I'm laughing too :D What the hell?!?!?! Quote -------------------------------------------------------- Tu peux aussi crire en franais. Du kannst auch auf Deutsch schreiben. Puoi scrivere anche in italiano. --------------------------------------------------------
iphonogasm Posted June 19, 2012 Author Posted June 19, 2012 lol yea....well all is stable again.... but, there almost seems there should be a more stable way to direct http to https. This seems really weird to me? Im almost temped to get a redirection script, create a new site with the HTTP binding, add the script to a index.html to direct to https://megahosting.co.nz which is a site whcih already exits!!! WTF!!!! LOL Quote
ICTCity Posted June 19, 2012 Posted June 19, 2012 your network is... your network ^^ I've tried multiple redirection on work website and everything works like a charm ^^ Quote -------------------------------------------------------- Tu peux aussi crire en franais. Du kannst auch auf Deutsch schreiben. Puoi scrivere anche in italiano. --------------------------------------------------------
iphonogasm Posted June 20, 2012 Author Posted June 20, 2012 So ive managed to get as far as a SSL redirect loop haha. I took the rediection page redirectToHttps.htm and renamed to index.html and set index.html to default document. obviously it just keeps loading the index.html.... Then tried changing the redirect page index.html code to this Redirecting... function redirectHttpToHttps() { var httpURL= window.location.hostname + window.location.pathname + window.location.search var httpsURL= "https://megahosting.co.nz/index.php" + httpURL window.location = httpsURL } redirectHttpToHttps() Also, a random through....what about using php require once?? and call the document only once. Dont think this would work though Quote
ICTCity Posted June 20, 2012 Posted June 20, 2012 You are almost there... if I vist http:// I have a redirection on: https://megahosting.co.nz/index.phpmegahosting.co.nz/ So fix the last part ) Quote -------------------------------------------------------- Tu peux aussi crire en franais. Du kannst auch auf Deutsch schreiben. Puoi scrivere anche in italiano. --------------------------------------------------------
iphonogasm Posted June 20, 2012 Author Posted June 20, 2012 yes but it keeps redirecting correct? How to fix this as it keeps loading the default page as the redirect page? hence the loop... Quote
ICTCity Posted June 20, 2012 Posted June 20, 2012 I think you have a redirection in REDIRECT (from IIS) but you also have a script running in some page that redirects too. Right? If yes, delete one of them. Quote -------------------------------------------------------- Tu peux aussi crire en franais. Du kannst auch auf Deutsch schreiben. Puoi scrivere anche in italiano. --------------------------------------------------------
iphonogasm Posted June 20, 2012 Author Posted June 20, 2012 i dont know whats going on, it almost seems like IIS is not restating properly like its takes a while to restart using iisreset anyway it should work now can you test? Thanks! Quote
ICTCity Posted June 20, 2012 Posted June 20, 2012 Same as before. Stop the IIS and start. If you can, restart the server. Check the event viewer for errors Quote -------------------------------------------------------- Tu peux aussi crire en franais. Du kannst auch auf Deutsch schreiben. Puoi scrivere anche in italiano. --------------------------------------------------------
iphonogasm Posted June 20, 2012 Author Posted June 20, 2012 yes i am running iisrestart cmd i had the script destination wrong, set to https://megahosting.co.nz so it was loading the index.html again and looping.. set to https://megahosting.co.nz/index.php can you try now lol.... Thanks! Quote
ICTCity Posted June 20, 2012 Posted June 20, 2012 You don't understand how to redirect :P Now the redirection points to: https://megahosting.co.nz/index.phpmegahosting.co.nz/ You are really close... really close... Quote -------------------------------------------------------- Tu peux aussi crire en franais. Du kannst auch auf Deutsch schreiben. Puoi scrivere anche in italiano. --------------------------------------------------------
iphonogasm Posted June 20, 2012 Author Posted June 20, 2012 lol but its working for me....locally and on my iphone (3G) Quote
ICTCity Posted June 20, 2012 Posted June 20, 2012 mhhh not for me :P Quote -------------------------------------------------------- Tu peux aussi crire en franais. Du kannst auch auf Deutsch schreiben. Puoi scrivere anche in italiano. --------------------------------------------------------
iphonogasm Posted June 20, 2012 Author Posted June 20, 2012 cache? im real concious about cache and clear everytime before testing??? my iphone is on a public network so not sure why its not working for you! Quote
ICTCity Posted June 20, 2012 Posted June 20, 2012 Mhhh ok now it's redirecting on the right website but once loaded I have "internal error" mhhh strange. Quote -------------------------------------------------------- Tu peux aussi crire en franais. Du kannst auch auf Deutsch schreiben. Puoi scrivere anche in italiano. --------------------------------------------------------
iphonogasm Posted June 20, 2012 Author Posted June 20, 2012 lol really, does it load the index.php at all? or is it when you click a link the about page doesnt work yet, and reseller hosting and SSL certificates still no page! Thanks again for your time! Quote
ICTCity Posted June 20, 2012 Posted June 20, 2012 Mhhhh now everything's fine... odd Quote -------------------------------------------------------- Tu peux aussi crire en franais. Du kannst auch auf Deutsch schreiben. Puoi scrivere anche in italiano. --------------------------------------------------------
ICTCity Posted June 20, 2012 Posted June 20, 2012 just another thing... Set up a reminder somewhere to renew the certificate... maybe one month before it expires so you have time to re-buy another one and nobody notice anything :). Well, I did this but unfortunatly I did so many time POSTPONE on outlook and one day people started to call me asking why there was a "certificate error". I have ordered a new cert but in some way the file was corrupted so I passed almost 5 hours answering questions about cert error. Finally when everything was resolved outlook give me a pop-up: REMINDER: Renew SSL Cert! What a great day ^^ Quote -------------------------------------------------------- Tu peux aussi crire en franais. Du kannst auch auf Deutsch schreiben. Puoi scrivere anche in italiano. --------------------------------------------------------
iphonogasm Posted June 20, 2012 Author Posted June 20, 2012 just another thing... Set up a reminder somewhere to renew the certificate... maybe one month before it expires so you have time to re-buy another one and nobody notice anything :). Well, I did this but unfortunatly I did so many time POSTPONE on outlook and one day people started to call me asking why there was a "certificate error". I have ordered a new cert but in some way the file was corrupted so I passed almost 5 hours answering questions about cert error. Finally when everything was resolved outlook give me a pop-up: REMINDER: Renew SSL Cert! What a great day ^^ Haha that sounds like fun. Thanks for the advice. just quickly while were on the topic of IIS i have 2 quick questions I want to add a binding to a directory within a site? Is this possible And, ....forgot the second, will update when i remember lol Quote
Recommended Posts