Coder Social home page Coder Social logo

Comments (10)

Tratcher avatar Tratcher commented on June 30, 2024 2

So I followed the docs and did this in Startup.cs at the end of Configure() (after app.UseMvc(), I hope that's correct?):

Rewrite must come early in the pipeline, not at the end. In your case it needs to come before UseStaticFiles.

from basicmiddleware.

mkArtakMSFT avatar mkArtakMSFT commented on June 30, 2024

Thanks for contacting us, @lonix1.
Please provide us with a minimalistic repro project so we can investigate the issue.

from basicmiddleware.

mkArtakMSFT avatar mkArtakMSFT commented on June 30, 2024

From @kichalla on August 10, 2018 18:30

cc @jkotalik

from basicmiddleware.

mkArtakMSFT avatar mkArtakMSFT commented on June 30, 2024

From @jkotalik on August 10, 2018 18:32

Seems like a bug, will look into it in the 2.2 timeframe.

from basicmiddleware.

mkArtakMSFT avatar mkArtakMSFT commented on June 30, 2024

@jkotalik, should this be moved to a different repo?

from basicmiddleware.

mkArtakMSFT avatar mkArtakMSFT commented on June 30, 2024

From @jkotalik on August 10, 2018 23:16

Oops: just BasicMiddleware: https://github.com/aspnet/BasicMiddleware

from basicmiddleware.

mkArtakMSFT avatar mkArtakMSFT commented on June 30, 2024

From @gsdnano on August 11, 2018 3:28

This can be reproduced by taking the example at https://docs.microsoft.com/en-us/aspnet/core/fundamentals/url-rewriting?view=aspnetcore-2.1&tabs=aspnetcore2x and commenting out the app.Run command at the end of the Configure function. The url rewrite example will then 404 no matter the replacement url. This is using core 2.1 and Microsoft.AspNetCore.Rewrite 2.1.1.

from basicmiddleware.

mkArtakMSFT avatar mkArtakMSFT commented on June 30, 2024

From @lonix1 on August 11, 2018 6:0

Once this bug is resolved, please also give us some guidance (or better yet, update the docs) about the implications of putting this before/after/between app.UseStaticFiles() and app.UseMvc(), or whether it should be at the beginning/end of Configure() i.e. the beginning/end of the pipeline.

from basicmiddleware.

mkArtakMSFT avatar mkArtakMSFT commented on June 30, 2024

@muratg FYI

from basicmiddleware.

jkotalik avatar jkotalik commented on June 30, 2024

@lonix1 I assume this solved your issue. Closing. You may reopen if you are still having issues.

from basicmiddleware.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.