Forum Discussion
Soft_JL
Nimbostratus
Nov 03, 2020Change redirect from http to https
Hi guys, Got an issue where the end webserver sends a redirect for a certain address. When going direct with https to the server it sends back a redirect of https://whatever.com but when ...
nrelihan_68143
Nimbostratus
Oct 20, 2011Hey Michael,
Yes that makes sense, I remember I was using HTTP::respond 302 location before, and someone said I could just use HTTP::redirect instead. So I will just edit my code like so:
switch [whereis [IP::client_addr] country] {
"IE" {
if {$hostname eq "www.example.com" }
{ HTTP::respond 301 location "http://www.example.com/ireland"
Or can I leave out the quotes around http://www.example.com/ireland"?
Cheers.
- Victor_GranicJan 11, 2024
Employee
"NEVER HARDCODE PASSWORDS!" Amen!