Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
382 views
in Technique[技术] by (71.8m points)

c# - In ASP.net core CSS, js and image file does not loaded when using URL rewrite role for first segment

AddRewrite(@"([0-9A-Za-z-]+)", "Home/Category?slug=$1", skipRemainingRules: true) it does not work but AddRewrite(@"([0-9A-Za-z-]+).htm", "Home/Category?slug=$1", skipRemainingRules: true) works when I added .htm at the end of the the group.

I need to work first one

question from:https://stackoverflow.com/questions/65915287/in-asp-net-core-css-js-and-image-file-does-not-loaded-when-using-url-rewrite-ro

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...