BC Digi
09/06/2023, 1:44 PMSebastiaan
09/06/2023, 1:57 PMweb.config
file with redirects in it. https://docs.umbraco.com/umbraco-cms/reference/security/ssl-https#redirect-traffic-on-iis
This is a https redirect, but you can make your own. It might need some extra work, as it looks like .php
is treated as a file, maybe give this a try: https://stackoverflow.com/a/46989139Rich G
09/06/2023, 3:41 PMSebastiaan
09/06/2023, 3:48 PMSebastiaan
09/06/2023, 3:48 PMhuwred
09/06/2023, 4:01 PMRich G
09/06/2023, 4:29 PMSebastiaan
09/06/2023, 4:55 PMMike Chambers
09/06/2023, 8:15 PM<system.webServer>
<handlers>
<remove name="aspNetCore"/>
<add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified"/>
</handlers>
<aspNetCore processPath="%LAUNCHER_PATH%" arguments="%LAUNCHER_ARGS%" stdoutLogEnabled="false" stdoutLogFile=".\logs\stdout" />
</system.webServer>
or if you don't want add web.config you can add the same rules into an xml file and use AddIISUrlRewrite() ??
Also I find that kestrel is much better for local dev.. and these rewrites wouldn't get picked up then? (is it the case also that linux appservice on azure wouldn't observer these either?) plus an IRule in asp.net core opens up so much more functionality for rewrites if required and would work in all host configurations?Mike Chambers
09/06/2023, 8:31 PMBC Digi
09/07/2023, 5:04 AMSebastiaan
09/07/2023, 9:39 AMA hub and casual space for you to interact with fellow community members and learn more about Umbraco!
Powered by