Redirection error redirected you too many times


This article aims to provide 2 solutions to an issue you encounter when you access a page and it redirected you too many times with the following error message:






Prerequisites : Knowledge of IIS redirections and Advanced URL Management.

Resolution #1

This issue can occur when the Portal Alias for your culture has not been set as the primary. To resolve the issue set the portal alias for the language in question as Primary. You can do this in the User Interface or in the database.

From the User Interface:

  1. Go to Persona Bar.
  2. Go Settings.
  3. Click on Site Settings.
  4. Select Site Behavior.
  5. Click Site Aliases.
  6. Click on the pencil icon to edit the language in question and select "Set Primary".

From the SQL Console:

  1. Go to Persona Bar.
  2. Go to SettingsSQL.
  3. Select Console.
  4. On the console, please use the following codes:
UPDATE PortalAlias
SET IsPrimary = 1
WHERE HTTPAlias = 'URL with the language in question'

Note: Change the "URL with the language in question" to the actual URL encountering an error.


Resolution #2

This error can also occur due to duplicate redirects set for a particular page. For example, a redirect could be set the redirect to the page that it is currently on, causing a redirect loop.

To verify that this is the case and resolve it:

  1. First, verify there is a redirect that is redirecting to the affected page by going to Content > Pages > Page Settings for the specific page > Advanced
    Go to Settings > SQL Console > Run the query: SELECT * FROM TabURLs WHERE TabID = #
    where you have to replace the # with the TabID.

    Page settings, SEO Tabs

  2. Then, you will need to proceed to delete the duplicate entry, you can delete this through the UI or run the SQL query: DELETE TabURLs WHERE TabID = # AND URL = 'FillinURL' AND HttpStatus = 301

NOTE - If you are on DNN 9.1.1, this issue could be caused due to invalid cache objects. To confirm the problem and take resolution steps, please refer to article DNN Evoq 9.1.1 Error: A critical error has occurred


You should not receive the redirection error message after browsing the page.


Related Articles




Please sign in to leave a comment.