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 8846125
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T11:54:07+00:00 2026-06-14T11:54:07+00:00

I seek some guidedence here … ( I’m not sure if this is the

  • 0

I seek some guidedence here … ( I’m not sure if this is the best title )

At the moment I prepend a “server name” to the url like this:

server10.example.com

This works fine, except that I need to handle all the subdomains on the IIS and I’m not sure google are happy about jumping around from sub to sub to sub, when it seems the links to the other servers.

I’m kind a hoping for a nice way to archive this wioth asp.net mvc.

Most pages are related to a “server” … there are however a few info pages, contact, home that dont really need a valid “server” name … but could just be “na” for not available, but the name need to be maintained, if there is already a selected server, when a user are keeps browsing the site. This needs to be as transparent as possible when I need to create the links to the diffenrent pages.

I could extend the Html Action() extensien to automatically add the selected “server” from the previusly request to the page.

In the format:

/{serverParameter}/{controller}/{action}/{parameterInfo}

And if no server is selected, just add “na” as the {server} placeholder.

I’m not sure if more information is needed, but please let me know if …

I tired of extracting the selected server from the domain part and the other way also seems better, I just can’t think of a good way to structure this …

Updated

90% of all the pages are about a server that the user select at some point. Could be server10, server9, server20 … just a name. I want to maintain that information across all pages, after the users has selected it or else I just want it to be f.ex: “empty”.

I mostly looking for an easy way of doing this or an alternative … atm I’m prepending the serverParamter to the url so it ends up being: “serverParameter.example.com”.

I want to end up with something like

http://example.com/{server}/{controller}/{action}

instread of

http://{server}.example.com/{controller}/{action}
  • 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-06-14T11:54:09+00:00Added an answer on June 14, 2026 at 11:54 am

    I went with the already impemented routing in ASP.NET MVC.

    {server}/{controller}/{action}
    

    When creating the links it takes the set value for {server} and places the value when generating URL’s, so I only need to supply controller and action in the @Html.Action helper method … this could not have been more easy.

    I’m not sure why I did not think about this. One just gotta love routing.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I seek some full featured async http client (using NIO, not thread per connection),
For some reason my buffer is getting filled with jibberish, and I'm not sure
EDIT: To answer some questions, this is the revised and still not working code
For some time I am battling to solve this problem but I am not
For some reason i can not seek my utf16 file. It produces 'UnicodeException: UTF-16
I just found this: sed '/label/{n;n;s/{}/{some comment}/;}' The intended effect is to seek label
After some searching around the web I want to seek your opinion on this
I would like seek some guidance in writing a process profiler which runs in
i am a newbie to the WebService area, and seek some help. I have
I'm getting some strange performance results here and I'm hoping someone on stackoverflow.com can

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.