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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T00:12:28+00:00 2026-05-13T00:12:28+00:00

I have a site that is hosted in shared hosting environment. They use a

  • 0

I have a site that is hosted in shared hosting environment. They use a wildcard subdomain setup and suggest using Response.Redirect to achieve the illusion of a subdomain.

Is there a way of doing this such that the “switch” takes place on the server rather than bouncing back down to the browser first?

Server.Transfer only works if I transfer to an actual resource. So redirecting from sub1.mydomain.com to http://www.mydomain.com/public/ does not work. I’d have to redirect to http://www.mydomain.com/public/mypage.aspx instead which i dont want to do.

  • 1 1 Answer
  • 1 View
  • 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-13T00:12:29+00:00Added an answer on May 13, 2026 at 12:12 am

    To ensure that the “switch” takes place on the server, you could create a simple HTTP Module to intercept each request, inspect the requested URL and then forward them as needed . All your module has to do is handle the OnBeginRequest event, and then forward the request. In this way you could really have unlimited sub-domains.

    Also might want add a blank host header, so that any requests for subdomains not listed get forwarded to the proper default website

    If you aren’t familiar with them, modules are very simple to create and work with.
    Heres a link to a very similar implementation by Brendan Tompkins:
    http://codebetter.com/blogs/brendan.tompkins/archive/2006/06/27/146875.aspx

    You could also do some URL rewriting in the module should you need specific URL “look” behavior.

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

Sidebar

Related Questions

I'm writing a website that will be hosted on a shared hosting environment. As
Here the problem. I have my site hosted on a shared hosting for asp.net
We have a site hosted in IIS6 that we built using the .NET 1.1
I have a site that is hosted on inmotion hosting and requires a phpMailer
We have a hosted site that has a CMS we built running on a
Argghh. I have a site that offers audio previews of songs hosted elsewhere. Some
I have a site that is using x509 client certificates (2 way SSL) to
I have a site that I've developed that makes decent use of Javascript, and
I have a site that I am currently working on in ASP.NET 2.0 using
Is it possible that we have one domain where database and site is hosted

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.