Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Arjan H. 142 posts 275 karma points
    Jun 28, 2013 @ 11:13
    Arjan H.
    0

    How to redirect the root (v2.0.3-beta)

    How can I redirect the root (/) of the website to a specific subdirectory? I've tried creating a redirect using "/" as the Old URL. The redirect is being saved, but I end up getting a null reference error, the OldUrl value in the database record is NULL. You should probably make sure "/" isn't processed as valid input for the Old URL field.

    While typing this I also tried setting up the redirect using the following Regex: ^(/$|$). This works... kinda. It now redirects the root to http://domain.com//subdirectory, but notice the double forward slash?

    Again, I tried some different options. The double forward slash only occurs when I use the content picker to set the Redirect node. When I use Redirect URL field and set it to "subdirectory" (no slashes) it works fine.

    Recap: To redirect the root I can currently only use a combination of Regex and Redirect URL. I would like to be able to use the Old URL field in combination with Redirect node (content picker), because clients would have a hard time understanding the first option, probably resulting in unwanted or broken redirects.

    Any help would be appreciated.

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Jun 28, 2013 @ 11:16
    Stefan Kip
    0

    Redirecting the root node was not included in my tests ;-)

    I'll try to look into this soon, thanks for reporting.

  • Arjan H. 142 posts 275 karma points
    Jun 28, 2013 @ 11:18
    Arjan H.
    0

    You're welcome. Keep me posted. Btw, great job so far on version 2!

  • Michal Neuwirth 3 posts 23 karma points
    Dec 08, 2013 @ 13:32
    Michal Neuwirth
    0

    Hi,

    any news? I've jus installed version 2.3.1, but I'm not able to find how to redirect root node to any sub-folder.

    Thanks!

    MN

  • Stefan Kip 1606 posts 4098 karma points c-trib
    Dec 08, 2013 @ 14:02
    Stefan Kip
    0

    Not yet, patience is a virtue ;-)

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies