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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T04:00:21+00:00 2026-06-14T04:00:21+00:00

we published our asp.net website to a domain www.domainname.com. we have to redirect users

  • 0

we published our asp.net website to a domain http://www.domainname.com.

we have to redirect users to our website if they are trying to open http://www.domainname.co.Uk or http://www.domainname.net.

how can I achieve that?

thanks

  • 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-14T04:00:22+00:00Added an answer on June 14, 2026 at 4:00 am

    You need to do as Enes days after checking the domain in your request.

    That is, search the string returned by HttpContext.Current.Request.Url to see if the domain you are wanting is here, then redirect where ou want.

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

Sidebar

Related Questions

I have an ASP.NET website where most of the pages are generated and published
Using Visual Studio 2008, I have published my ASP.NET website to my local disk
I have an ASP.NET 3.5 site published in IIS 7.5 on Windows Server 2008
Currently I'm tasked with doing the daily build. We have an ASP.NET 2005 website
We have CC.NET setup on our ASP.NET app. When we build the project, the
Need your help...... We are trying to expose API's for auction website(asp.net 4.0) using
I am trying to build an application on our company's intranet using ASP.NET and
I have an ASP.NET c# web application published to a server of ours. It
I have an ASP.NET 2.0 application that is working fine in our local environment.
Our users have a table showing their titles. (They're contained in a datatable, if

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.