Removing a page redirect due to duplicate redirects from duplicate pages

Overview

DNN allows you to remove alternate URLs that redirect to pages. This is necessary when two pages have the same redirect in place, which can cause unexpected redirects while browsing the page. You will also need to remove page redirects if you delete a page and then create a page with the same URL causing an unexpected redirect.

 

Prerequisites

 

Solution

Delete page redirect from Persona Bar (Common Solution)

  1. Choose Content > Pages
  2. Select the page with the unwanted redirect.
  3. Choose Advanced > S.E.O. from the menu.
  4. Click the trash can for the desired row.
  5. Clear the server cacherefresh the page, and confirm that the page is now redirecting to the correct URL. 

    page_redirect_screen.png

Delete page redirect through SQL if the above method does not work

Use SQL to find the TabID for the page and delete the unwanted redirect. In the example below, the page is called "inicio" and the TabID found is 23.

Attention: Always back up your database before executing SQL commands.

  1. Run the following query, using the page name in place of '%inicio%', to find the page's TabID.

    SELECT * FROM Tabs WHERE TabName LIKE '%inicio%'
    find_tabid.png
  2. Run the following query to find all the redirects for this page.
    SELECT * FROM TabURLs WHERE TabID=23
    find_redirects.png
  3. Run the following query to delete the unwanted redirect, in this case "/Noticia".
    DELETE FROM TabURLs WHERE tabid=23 and seqnum=2;
  4. Clear the server cacherefresh the page, and confirm that the page is now redirecting to the correct URL. 

Comments

0 comments

Please sign in to leave a comment.