Overview
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:
ERR_TOO_MANY_REDIRECTS
Solution
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:
- Go to Persona Bar.
- Go Settings.
- Click on Site Settings.
- Select Site Behavior.
- Click Site Aliases.
- Click on the pencil icon to edit the language in question and select "Set Primary".
From the SQL Console:
- Go to Persona Bar.
- Go to SettingsSQL.
- Select Console.
- 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.
(Example: site.example.com/es-ES)
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:
- 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
OR
Go to Settings > SQL Console > Run the query: SELECT * FROM TabURLs WHERE TabID = #
where you have to replace the # with the TabID.
- 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
Confirmation
You should not receive the redirection error message after browsing the page.
Related Articles
Comments
0 comments
Please sign in to leave a comment.