iphonogasm Posted June 19, 2012 Author Posted June 19, 2012 Thanks. Ive looked at a few redirection options. I have 2 questions. I am not getting an error 403.4 when using HTTP, guessing this is because i have no error page configured for it? Also, i tried to paste the tags and info into the XML however it had no previous RULE tags so i was unsure where to put this? I screwed the XML putting it at the bottom after configuration close tag. Had to go back and revert changes before i could use IIS management console with that site! Thanks! Quote
ICTCity Posted June 19, 2012 Posted June 19, 2012 Depends on how you configure IIS, if the HTTP is available you don't have error. If you force SSL on HTTP you will have :) No problem, place the rule in the "middle". 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 no go :( my XML URL Rewrite installed and Require SSL unticked! Quote
iphonogasm Posted June 19, 2012 Author Posted June 19, 2012 also tried step 2 and when i get to step 10 i get the error "Lock Violation" Quote
ICTCity Posted June 19, 2012 Posted June 19, 2012 it's "working" when you try to access the site via http you have a 404 (not found) and when you access the https it redirects to a 404 eheheh Check where you putted the rule ;) 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 im trying step 2 now, got past the Lock Violation, had to remove a line in applicationHost.config, but its still not redirecting to https, im working between the 2 to see which i can get working. Heres my redirect page. Redirecting... function redirectHttpToHttps() { var httpURL= window.location.hostname + window.location.pathname + window.location.search; var httpsURL= "https://megahosting.co.nz" + httpURL; window.location = httpsURL; } redirectHttpToHttps(); Quote
ICTCity Posted June 19, 2012 Posted June 19, 2012 Make it easy. Force SSL on http, the on error page redirect to HTTPS ;) 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 ive tried this using step 2 of the article.. But im getting error 404. When its telling me to redirect error 403.4 Quote
ICTCity Posted June 19, 2012 Posted June 19, 2012 Are you setting the REQUIRED SSL on the right place? On HTTP set 404 error to HTTPS and now should work. 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 i dont think my ssl cert has installed properly. Added the HTTP binding at port 80 Enabled Require SSL when i visit http://megahosting.co.nz the page is blank, however there is no error page configured for 403.4 when i configure one to redirect to the HTM page to redirect to HTTPS doesnt work Quote
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. --------------------------------------------------------
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.