Try our conversational search powered by Generative AI!

Custom redirect in Bvn.404Handler not working

Vote:
 

Hi!

I am trying to get the custom redirect gadget in the BVN.404Handler, but I can't get it to work. It simply wont do the redirects I add.

I have installed the latest version (11.2.3).

The 404 redirect is working.

The redirects are set up like this: <oldurl> - <newurl>

If the old url is valid, it will stay there. If the old url doesn't exist anymore, it will show the 404 page.

#203452
Edited, Apr 24, 2019 12:28
Vote:
 

Can you post an image of your redirects? Ive created some redirects today although in an older version with now problem.

#203485
Apr 24, 2019 22:42
Vote:
 

If you export your redirects do they show up in the XML file?

#203509
Apr 25, 2019 19:36
Vote:
 

I would post an image if I could, but the image upload doesn't seem to be working?

I exported the redirects to an xml file, and the result is this:

<?xml version="1.0" encoding="UTF-8"?>
<redirects>
  <urls>
    <url>
      <old>/presse/</old>
      <new>/nyhetsrom/</new>
    </url>
    <url>
      <old>/matlaging/</old>
      <new>/tipssok/</new>
    </url>
    <url>
      <old>/ravarer/poteter1/</old>
      <new>/ravarer/poteter/</new>
    </url>
  </urls>
</redirects>
#203628
Apr 30, 2019 10:53
Vote:
 

Verify that your web.config settings are correct. See: https://github.com/Geta/404handler. Especially the handlermode="On".

Other troubleshooting things:

  • Using something like CURL you can see what response you're getting from your site
  • Add a new redirect to the XML that exported and import back into the site, make sure it accepts it.
#203688
May 02, 2019 18:55
Vote:
 

Thanks for your replies!

So, it seems that it works for urls that don't exist. But it doesn't work for pages that either exist or are expired.

Is this the intended functionality?

#203705
May 03, 2019 13:17
Vote:
 

I would use IIS Url Rewrite module for redirects instead.

Regards,

Magnus

#204373
May 29, 2019 13:16
Vote:
 

Yes, but we wanted the editors to be able to configure this, so we needed a way to do this in episerver.

#204374
May 29, 2019 15:52
Vote:
 

For pages that exist you may want to use the built-in shortcut feature

#204440
May 31, 2019 21:55
Vote:
 

Did you follow the migration steps as instructed in the release notes:
If you are upgrading this package from a version previous to 11.2.0 (or 10.4.0 for CMS 10), you should run a migration of data. Open administration view on the gadget and under "Migrate redirects from DDS to SQL." click "Migrate." It will take some time depending on how many redirects you have. After the migration, the message will be displayed with information about how many redirects were moved to the SQL store. The message looks like - "Migrated 1000 redirects from DDS to SQL".

#206284
Aug 12, 2019 6:43
Vote:
 

I have a similar problem. Most of the redirects work fine (there are 37) but one in particular insists on redirecting to another page. I have tried removing the offending redirect yet the redirect to the wrong page persists, even after touching the web.config and also restarting iis. What could be going on? The redirect is no longer in the 404handler.redirects table, yet the redirect (to the wrong page) still persists? Is there some cache that is not apparent for this list, that can survive an IIS restart? It defies all logic

#208198
Oct 17, 2019 13:55
John walsh - Oct 26, 2019 6:02
Are you looking in the right place? Did you check tblBigTable?

SELECT StoreName, ItemType, String01 as oldUrl, String02 as newUrl FROM [tblBigTable]
where StoreName like 'BVN%'
Vote:
 

If you have triggered a redirect for a page it might be so that the browser has the redirect chached and it could be quite troublesome to make it correct the cached redirect, see https://stackoverflow.com/a/21396547/1381710 So even if you update the redirect your browser keeps redirecting to the old address.

To see if a redirect is cached and is indeed working correctly try add some cache clearing data to the address, like ?cc=123

#208635
Oct 29, 2019 11:52
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.