1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

re-direct common URLs ?

Discussion in 'Resource and Add-on Requests' started by erich37, Jun 17, 2014.

  1. erich37

    erich37 Well-Known Member

    I am not sure if this is already possible via XF-default ?

    for example:
    when a "Guest" clicks on the links mentioned below, then he is re-directed towards "domain.com/register"


    I am not sure where the "re-direction options" are located in ACP, or whether above mentioned exmple would be possible via XF-default or whether this would need an Addon ?

    Any hint is appreciated.

    Many thanks!

  2. Jeremy

    Jeremy Well-Known Member

    You cannot do that in the default XenForo. You'll need an add-on.
    erich37 likes this.
  3. erich37

    erich37 Well-Known Member

    ahh... thanks !

    Anyone able to code an Addon for this, please let me know.

    I think such kind of feature will allow a webmaster to re-direct certain URLs (as mentioned in first post) towards a certain URL (for example "domain.com/register").
    By doing so, this could prevent access for "Guests" (not registered members) of certain URLs.

    Simple Mockup:


    Last edited: Jun 18, 2014
  4. erich37

    erich37 Well-Known Member

    Andy was so kind and coded this idea:


    Now you can create a "URL redirect" from certain URLs (listed below) towards any other URL you may like.
    For "guests" (unregistered users).

    Forums Redirect = domain.com/forums/
    Find-New Redirect = domain.com/find-new/posts
    Members Redirect = domain.com/members/
    Online Redirect = domain.com/online/
    Recent-Activity Redirect = domain.com/recent-activity/
    Thread Redirect = domain.com/threads/
    Help Redirect = domain.com/help/

    So for example:
    - when a "guest" visits the URL "domain.com/members", then he is being forwarded to "domain.com/login"
    - when a "guest" visits the URL "domain.com/help", then he is being forwarded to "domain.com/whatever"
    - when you have a "Portal" at your Homepage and you would like to "hide" your Forum from guests, then simply forward your "guest" from "domain.com/forums" towards the URL "domain.com/login"

    This system lets you now effectively hide certain URLs from "guests" and "search engines" via a simple click.

    Well done, @AndyB

    Last edited: Jun 19, 2014
    AndyB and Adam Howard like this.

Share This Page