Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6073537
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:16:54+00:00 2026-05-23T10:16:54+00:00

is it possible to redirect a static seo friendly url address to a controller/action

  • 0

is it possible to redirect a static seo “friendly” url address to a controller/action without loosing the original address?

For example:

  • if you navigate to http://localhost/find-the-best-employees

  • under the hood MVC takes you to http://localhost/Search/Employees (SearchEmployee controller, Index action). But the idea is to keep the address http://localhost/find-the-best-employees.

How can I make this work on ASP.NET MVC 2.0?

I was having a look at here and here with no luck during tests.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T10:16:55+00:00Added an answer on May 23, 2026 at 10:16 am

    In Global.asax define a route like:

     routes.MapRoute(
                       "findEmployess",                                              // Route name
                       "find-the-best-employees",                           // URL with parameters
                       new { controller = "SearchEmployee", action = "Index" }  // Parameter defaults
                   );
    

    For this to work you need to use the route-name when generating the url, using this html helper

    <%: Html.RouteLink("Search Employees","findEmployess")%>
    

    Also you need to define this route before the default route:

    //Your custom routes goes HERE before the default route
    
    routes.MapRoute(
                    "Default", // Route name
                    "{controller}/{action}/{id}", // URL with parameters
                    new { controller = "Home", action = "Index", id = UrlParameter.Optional } // Parameter defaults
                );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to redirect to a different view from a controller? For example,
is it possible to redirect an URL www.siteA.com to www.site2.com/Default.aspx?SiteSource=siteA without changing the browser's
Is it possible to return a 307 Temporary Redirect from a controller in ASP.NET
I wonder if 301 redirect is possible in an exclusively html static nginx server?
Is that possible to redirect to another url with a delay in GAE? I
Is it possible to redirect from one controller to another using POST request? redirect_to
Is it possible to redirect all requests to x.domain.com/.* to y.domain.com/.* WITHOUT letting this
Is it possible to redirect if the image specified at url src=nothere is not
Possible Duplicate: Shorten the URL from example.com/page.php?var=letters to example.com/letters Using htaccess, is it possible
Is it possible to define static rule for 301 redirect to canonical host name?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.