Jump to content

redirecting issue


pwntastic

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.

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?

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

Archived

This topic is now archived and is closed to further replies.

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