Jump to content

Recommended Posts

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.

 

 

Link to comment
https://forums.phpfreaks.com/topic/281234-redirecting-issue/
Share on other sites

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 by requinix
Link to comment
https://forums.phpfreaks.com/topic/281234-redirecting-issue/#findComment-1445301
Share on other sites

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 by pwntastic
Link to comment
https://forums.phpfreaks.com/topic/281234-redirecting-issue/#findComment-1445390
Share on other sites

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?

Link to comment
https://forums.phpfreaks.com/topic/281234-redirecting-issue/#findComment-1445449
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

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

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.