This page guides you through setting up DNN Redirect with a simple
redirect that affects all users which are not registered. We will
redirect all unregistered users to the Benefits page. Step 1 - InstallationNote: If you don't already it installed, proceed to Download DNN Redirect FREE Edition. Using DotNetNuke Control Panel, instantiate a DNN Redirect module on the page where you want to redirect users from. Let's assume the redirects module goes on the home page. Important: For the module to be able to execute redirects make sure ALL ROLES & USERS that will be affected have view rights to the module (this is specified in Module Settings, by default it inherits view permissions from the DNN page). The safest way to proceed is to grant view rights to all users. To make this module transparent to the end user, just uncheck Display Container option in Module Settings. Note that the only thing displayed by this module for non-administrators are random trial notifications and count down timers if the rules was setup as such. Step 2 - Setting the RedirectWhen you're logged in with an administrator account DNN Redirect module will display the administration interface. There are 3 distinct sections, each representing on type of redirect: Parameter Redirects, Referrer Redirects and Role Redirects. Note: In Redirect Toolkit all redirect types are created under the same generic interface making the administration interface much simpler and powerful to use. Read more in Redirect Toolkit Getting Started Guide. To achieve our purpose locate the Role Redirects section, the last of the three sections, and set it up to redirect Unregistered Users to http://yoursite.com/Benefits.aspx page. See picture below for more info. Now, hit Add/Update button to save the redirect in Database. Once added, you should see the redirect added to the list below the form. You will notice there's no edit button in the list. To edit the redirect just fill the form again with Unregistered Users role and a different URL. This will replace existing redirect. If you followed the steps then your screen should look like in the picture below. Step 3 - TestingImportant: Note that Administrators (or users with edit rights for the DNN Redirect module) will NEVER be affected by redirects. Though we're going to test this rule as an unregistered user, this is good to know in the future as you define more redirects. Testing this is very simple. Make sure you're not logged in on your portal, then access the homepage (or whatever page you created the DNN Redirect module on). If everything is setup correctly, you should be redirect to the Benefits page. If the redirect doesn't happen, please review all the instructions above or contact us for support on our forums. Congratulations, you created your first rule! We recommend that you browse the rest of the documentation and experiment with various options. |