noslenwerd
Programmer
Ok, i need a little statement that i can put in out redirect.jsp page that will automatically put CERTAIN users to https: if they try typing in http. The reason it is only for certain users is because some people do not have SSL sites.
Also the reason we don't just make different files is because all of our ASP customers use the same redirect.jsp page
Could I use something similar to this? I know it needs tweaked but not quiet sure how to...
if(location.href.indexOf('firstsite.com')>-1)
{
location.href='redirect.asp?page='+escape(location.href.replace(/firstsite\.com/gi,'secondsite.com'));
}
Also the reason we don't just make different files is because all of our ASP customers use the same redirect.jsp page
Could I use something similar to this? I know it needs tweaked but not quiet sure how to...
if(location.href.indexOf('firstsite.com')>-1)
{
location.href='redirect.asp?page='+escape(location.href.replace(/firstsite\.com/gi,'secondsite.com'));
}