https://discord.umbraco.com logo
#help-with-umbraco
.aspx redirects
# help-with-umbraco
m

Matt Wise

10/18/2023, 12:31 PM
Anyone know how to pickup .aspx files into the umbraco pipeline? As we are using SEO checker to redirect
a

abjerner

10/18/2023, 12:38 PM
Redirects in which way? Manually added redirects? Or a more generic redirect that strips the .aspx extension?
m

Matt Wise

10/18/2023, 12:38 PM
the client has .aspx urls that need redirecting but its not getting picked up by SEO checker to redirect them to actual pages
I guess one solution would be just string .aspx in gneeral and double redirect
a

abjerner

10/18/2023, 12:46 PM
I don't know what SEO Checker does. It works in Skybrud Redirects 😁
m

Matt Wise

10/18/2023, 12:47 PM
😄 I might have to go dig through your code and theres 😄
k

kdxperbol

10/18/2023, 1:28 PM
Just add custom routing + redirects for the
.aspx
URLs? Or do you need the actual files? What's in the files? EDIT: Or do you just want the ASP.NET pipeline to ignore the
.aspx
URLs and send them to the normal MVC pipeline which is handled by Umbraco already?
m

Matt Wise

10/18/2023, 1:45 PM
The client is adding redirects to SEO checker all I want is them to redirect without me having to update the web.config all the time 🙂
k

kdxperbol

10/18/2023, 1:52 PM
I don't know SEO checker. But
.aspx
URLs aren't handled by Umbraco by default (8 and 9+) so I guess a middleware to make ASP.NET ignore them... SkyBrud probably has the luxury of doing it the other way, taking over all URLs (including
.aspx
) from the other middleware, including whatever legacy "Middleware" handles
.aspx