pwntastic Posted August 16, 2013 Share Posted August 16, 2013 Hello, I'm using window.location = 'http://www.websiteISpecify.com'; to redirect a person. This works fine in one page, however, in another one found in another domain with ssl, it redirects me to a url like the following: https://ssl.websiteISpecify.com How would I make it direct me to the page I'm specifying without adding these extra things? Thanks in advance. Quote Link to comment https://forums.phpfreaks.com/topic/281234-redirecting-issue/ Share on other sites More sharing options...
requinix Posted August 16, 2013 Share Posted August 16, 2013 (edited) Don't include "ssl" in the new URL. If you're not doing that, which I can only assume you aren't since that'd be a really silly thing to overlook, then there is some mechanism somewhere else that's doing the redirect. That's what you have to find and fix. Edited August 16, 2013 by requinix Quote Link to comment https://forums.phpfreaks.com/topic/281234-redirecting-issue/#findComment-1445301 Share on other sites More sharing options...
pwntastic Posted August 16, 2013 Author Share Posted August 16, 2013 (edited) Yea I did this: window.location = "http://www.candystand.com"; and even this: window.location.href = "http://www.candystand.com"; but both just redirect to http://ssl.candystand.com I don't understand the anchor href is equal to something like: domain.com/page that works fine I'd imagine location.href should work the same? I tried https://ssl.domain.com for the page I'm working with to see if that redirects? however it is unexistant Is there another way to redirect with javascript? Edited August 16, 2013 by pwntastic Quote Link to comment https://forums.phpfreaks.com/topic/281234-redirecting-issue/#findComment-1445390 Share on other sites More sharing options...
requinix Posted August 16, 2013 Share Posted August 16, 2013 There is no such domain ssl.candystand.com, and if I try https://www.candystand.com I get a big ol' warning about a wrong SSL cert. Quote Link to comment https://forums.phpfreaks.com/topic/281234-redirecting-issue/#findComment-1445398 Share on other sites More sharing options...
pwntastic Posted August 16, 2013 Author Share Posted August 16, 2013 I know thats why. Is there another way to forcefully redirect. I have no control over the server sided stuff as I'm working bigcommerce. Quote Link to comment https://forums.phpfreaks.com/topic/281234-redirecting-issue/#findComment-1445443 Share on other sites More sharing options...
requinix Posted August 16, 2013 Share Posted August 16, 2013 I cannot reproduce the behavior you're describing. I don't even know that it is redirecting as you say it is, considering how the domain name you say you're being sent to does not exist. Quote Link to comment https://forums.phpfreaks.com/topic/281234-redirecting-issue/#findComment-1445446 Share on other sites More sharing options...
pwntastic Posted August 16, 2013 Author Share Posted August 16, 2013 Honestly, I cannot reproduce this error either o.O . It must be something with bigcommerce. Is there another way to redirect people to another site? I'm not trying to send the person to https://ssl.candystand.com I'm trying to send them to http://www.candystand.com however, it keeps sending to the weird url. I did the window.location = 'http://www.candystand.com'; just like that and the .href also but the outcome is the same. Is there another way to redirect a person to another page with js? Quote Link to comment https://forums.phpfreaks.com/topic/281234-redirecting-issue/#findComment-1445449 Share on other sites More sharing options...
pwntastic Posted August 17, 2013 Author Share Posted August 17, 2013 Hello, talked to someone from bigcommerce it was a problem with them...dude said the only way to fix it was to get my own SSL but I found a way around it...thanks requinix I appreciate the attempt. Quote Link to comment https://forums.phpfreaks.com/topic/281234-redirecting-issue/#findComment-1445451 Share on other sites More sharing options...
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.