huilaaja / RedirectManager

Simple and portable redirect manager for Episerver websites
14 stars 5 forks source link

404 when accessing Redirect Manager #5

Open jdbosley opened 6 years ago

jdbosley commented 6 years ago

I am somewhat new to Episerver, so this may be user error. But I added the files to my project and built it, the link shows up in the admin but the page 404s when I click on it. I am on Episerver 7.5 in a DXC environment, maybe that is the problem.

Any idea of what is going wrong?

jdbosley commented 6 years ago

To provide more details:

When I directly click on the link I get this error System.Web.HttpException (0x80004005): The controller for path '/Views/Admin/RedirectManager' was not found or does not implement IController. I implemented IController on the Controllers > Misc > HttpErrorPageController class and still get a 404 though public class HttpErrorPageController : Controller, IController

Ranger1230 commented 5 years ago

I had the same issue. In the event you are still waiting for a solution, I ended up adding a controller and a MapRoute for the RedirectManager and change it to a normal MVC view with a null layout.

jdbosley commented 5 years ago

Thanks, I ended up going with a different redirect manager but this is good to know.

valdisiljuconoks commented 5 years ago

are there other managers out there as well? ;)

jdbosley commented 5 years ago

Sort of, it's technically a 404 handler but has redirect functionality. The only catch is that it can't redirect an existing CMS page or file in the file system. It only can handle redirects that would have gone to the 404 page otherwise. But Episerver has built-in shortcut functionality to redirect CMS pages, so it fit our requirements. It does have a cool feature where it records what URLs are hitting the 404 page and suggests redirects.

https://github.com/Geta/404handler

valdisiljuconoks commented 5 years ago

sorry, I was just trolling.. :)

jdbosley commented 5 years ago

OK... Unless you developed one or the other I fail to see the trolling part, but no biggie. Troll on.

LucGosso commented 3 years ago

For future ref, you have to activate "webpages" in appsettings, default it is set to false

<add key="webpages:Version" value="3.0.0.0" />
<!--Used by Redirect Manager-->
<add key="webpages:Enabled" value="true" />