Quantcast
Viewing all articles
Browse latest Browse all 9386

How do you remove shared hosting folder name from URL in ASP.NET Core 2?

<div class="votecell post-layout--left"> <div class="vote">0 down vote favorite<div class="favoritecount"></div> </div> </div> <div class="postcell post-layout--right"> <div class="post-text" itemprop="text">

I have a website (http://jsoncore.net) that I am using to learn .NET Core 2 and I want to remove the shared hosting folder name from the URL that is added to links and sources. For example I add an Html.ActionLink like this:

@Html.ActionLink(page.NavTitle, page.Slug,"Home")

and the system writes it to this:

<a href="/jsoncore/blog">Blog</a>

I want to remove the "/jsoncore" from the link URL so that it should look like this:

<a href="/blog">Blog</a>
</div> </div>

Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>