Page 1 of 1

Redirect URL

Posted: Wed Jun 26, 2019 10:21 pm
by rtankersley
Is it possible to redirect the login page if a user attempts to connect via local server name?

Example:
https://ServerName" rel="nofollow redirect to https://ServerName.domain.com" rel="nofollow

Occasionally, my users are logging in using the short URL. When they create a WebLink outside users are not able to use the link, due to the incorrect path. (WebLink is generated using the short URL, without the domain name.)

Re: Redirect URL

Posted: Thu Jun 27, 2019 9:51 am
by FTP
OK, maybe you can add the following Javascript code into the head of the file "webclient/login.html":

<script>
if(location.href.indexOf("https://YourDomain.com") != -1)
{
location = "https://xxx.YourDomain.com";
}
</script>

Re: Redirect URL

Posted: Mon Jul 01, 2019 5:27 pm
by rtankersley
Thank you for the reply.

When I change out the URL to our domain, the code causes a loop.
Any other ideas? I think you are on the right track.

Thank you for your help!

Re: Redirect URL

Posted: Tue Jul 02, 2019 2:17 pm
by FTP
Did you use the similar domain name like "https://xxx.YourDomain.com"?

If you use the domain name like "https://YourDomain.com/xxx", then it may cause a loop.