Redirect users to certain page on website

cancel
Showing results for 
Search instead for 
Did you mean: 

Redirect users to certain page on website

L1 Bithead

Hi

I am looking to be able to redirect users to a set page within a website when they visit the homepage

 

For example user goes to https://www.facebook.com I want them to be automatically redirected to https://www.facebook.com/PaloAltoNetworks/

 

I have tried using a custom response Page and url category but this just gets into a nasty loop

 

If anyone could help that would be excellant

 

Thanks

10 REPLIES 10

Yes, in my (lab) test I exported the default block response page and there I added a little script in the head-section of the html. In this script (because I simply wanted to test your mentionned facebook example) I had only one line: window.location.replace ("https://www.facebook.com/paloaltonetworks");

 

With this one line (and the needed security policies) I was able to browse to facebook.com where this block page was shown and there this redirect-script was triggered by atting an onload attribut to the htnl body tag.

 

Now in your case of course a little more customizing will be needed. I assume you also use the url block page for siguations where you do not want a redirect right?

So the script needs to either contain an if-then or switch-case function to make sure the redirect will only be triggered on the websites you want. So you need to pass the actual URL into a javascript variable to further process it. In addition, this block page is visible for <2 seconds. So for the user its better to show something else that the block page when the redirect is initiated.

 

Ok, if you've done not much with javascript now it sounds a little more complicated but it really isn't.

So if your still interessted I will shortly create what I described here and post it when it's done. 

Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!