Jump to content
Forum²

Recommended Posts

Posted

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!

  • Replies 88
  • Created
  • Last Reply

Top Posters In This Topic

Posted

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".

--------------------------------------------------------

Tu peux aussi crire en franais.

Du kannst auch auf Deutsch schreiben.

Puoi scrivere anche in italiano.

--------------------------------------------------------

Posted

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 ;)

--------------------------------------------------------

Tu peux aussi crire en franais.

Du kannst auch auf Deutsch schreiben.

Puoi scrivere anche in italiano.

--------------------------------------------------------

Posted

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();

Posted
Make it easy. Force SSL on http, the on error page redirect to HTTPS ;)

--------------------------------------------------------

Tu peux aussi crire en franais.

Du kannst auch auf Deutsch schreiben.

Puoi scrivere anche in italiano.

--------------------------------------------------------

Posted
Are you setting the REQUIRED SSL on the right place? On HTTP set 404 error to HTTPS and now should work.

--------------------------------------------------------

Tu peux aussi crire en franais.

Du kannst auch auf Deutsch schreiben.

Puoi scrivere anche in italiano.

--------------------------------------------------------

Posted

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

Posted

It's ok, just redirect the 404 from http to https.

 

Your cert is installed correctly.

--------------------------------------------------------

Tu peux aussi crire en franais.

Du kannst auch auf Deutsch schreiben.

Puoi scrivere anche in italiano.

--------------------------------------------------------

Posted

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();

Posted

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 -.-

--------------------------------------------------------

Tu peux aussi crire en franais.

Du kannst auch auf Deutsch schreiben.

Puoi scrivere anche in italiano.

--------------------------------------------------------

Posted

Ok now I'm laughing too :D

 

What the hell?!?!?!

--------------------------------------------------------

Tu peux aussi crire en franais.

Du kannst auch auf Deutsch schreiben.

Puoi scrivere anche in italiano.

--------------------------------------------------------

Posted

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

Posted

your network is... your network ^^

 

I've tried multiple redirection on work website and everything works like a charm ^^

--------------------------------------------------------

Tu peux aussi crire en franais.

Du kannst auch auf Deutsch schreiben.

Puoi scrivere anche in italiano.

--------------------------------------------------------

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...