skip to Main Content

Get Original URL before being redirected by IIS – SEO

Using IIS, we're currently redirecting URLs. But to display canonical URL's in the site for SEO, we want the original URL. Example: Actual URL: www.example.com/topsellers/mobiles Redirected URL: www.example.com/products?type=mobiles IIS Rewrite Rules: <rule name="url1" stopProcessing="true"> <match url="topsellers/([a-zA-Z0-9]+)" /> <action type="Rewrite" url="products?type={R:1}"…

VIEW QUESTION

Passing multiple POST parameters in ASP.NET Core controller – Jquery ajax

I have the following controller method: [HttpPost] public IActionResult AddNewMessage(string recipientUserId, string message) { var currentLoggedInUserId = this.User.FindFirstValue(ClaimTypes.NameIdentifier); _chatMessageRepository.AddNewMessage(currentLoggedInUserId, recipientUserId, message); return Ok(); } And I am trying to send data to it, using the following JQuery code: var data…

VIEW QUESTION
Back To Top
Search