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.
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.
Redirecting the root node was not included in my tests ;-)
I'll try to look into this soon, thanks for reporting.
You're welcome. Keep me posted. Btw, great job so far on version 2!
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
Not yet, patience is a virtue ;-)
is working on a reply...
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.