I have a website on my local computer. It is a CMS(DNN) Website which is for long time on my computer. it is on 127.0.0.1:80 but I set an address for it in the host file. It was working well till today that when I tried to visit it, I was redirected to another address which I had set on the host file too. I deleted that address from the host file and restarted my computer but I still redirected to that address.
IIS Redirects me to another URL
79 Views Asked by Nick Mehrdad Babaki At
2
There are 2 best solutions below
1
Chris Hammond
On
You should check the PortalAlias table in DNN. It is likely that the wrong Alias is listed in there, you can remove that from the database, then restart the APP in IIS (or modify the web.config to do this) and then try to access the original URL.
select * from portalalias
delete portalalias where httpalias = 'http://yourbadurl/'
Related Questions in ASP.NET
- Implementing Azure AD B2C Authentication in .NET 8 Blazor Project (RenderMode: InteractiveAuto)
- Azure Application Insights Not Displaying Custom Logs for Azure Functions with .NET 8
- IIS Rewrite Module exclude bots but allow GoogleBot
- Angular 16 sending null values to API
- I am the domain admin, newbie, how do I connect youtube.com on my domain?
- Dropdown list showing SQLServer2005SQLBrowserUser$DONSERVER instead of Active Directory group name in ASP.NET MVC C#
- ASP.NET Identity, Losing Ability to Login until Application Pool Recycles
- How to unprotect ASP.NET FormAuthentication cookie
- How does it work using ASP.NET FormAuthentication
- What is the purpose of a completely standalone 'this'?
- Is there a way to read .csproj PropertyGroup variable in c#
- MSBuild trying to copy different dll with similar name into project sporadically
- Minimizing IdentityServer4 Round Trips in Microservice Architecture with Ocelot
- Azure AD guest account in web app authentication user claims data
- Receiving 400 bad request on post when customer auth handler is used
Related Questions in IIS
- error 500 on IIS FastCGI but no clue despite multiple error loggings activated
- IIS Rewrite Module exclude bots but allow GoogleBot
- How to deploy angular 17 SSR into IIS
- IIS web site with httpplatformhandler on specific route does not redirect to the nextjs site
- Why is 'EDITBIN /STACK:2097152 w3wp.exe' cmd is giving me an LNK1342 error?
- Primeng Angular styles on subdomain don't work
- Apps migrated from IIS server1 to another IIS server2 stopped communicating with an App on IIS server 1 via SSL (HTTPS)
- How to authenticate with REST API service on IIS using pass-through authentication in Python?
- ASP.NET Core 8 is missing from application pool selection after install
- Azure Application Gateway ByPass
- SSL certificate is installed on iis and website but in browser is unknown
- Redirect to another site but show the original URL in browser
- Problem in hosting React App with react-router-dom on IIS Server
- Django Channels on IIS
- ASP.NET Core/Angular17 application files does not load when published in IIS
Related Questions in DOTNETNUKE
- Low Precision and Recall in LSTM Anomaly Detection Model
- Totally lost with Mobius Forms v5 on DNN
- Linq with strong typed data in 2sxc
- SearchBoost UrlFriendly Unwelcome Display
- Oqtane and Blazor-CMS on Windows using a remote PostgreSQL DB
- RequestVerificationToken not present when trying to export an app
- DotNetNuke Journal Module - User Profile Layout Discrepancy Between English and Italian Versions
- Can I get List Sort Options on a 2sxc App?
- 2sxc v14 to v16 Upgrade Issue: "Error trying to run ZoneIdOfApp(-100) - probably something wrong with the appId"
- How to visualize Deep learning framework using Keras package with R?
- Contenttype in 2sxc gives: The 'ObjectContent`1' type failed to serialize the response body for content type 'application/json; charset=utf-8'
- Using 2SXC behind a reverse prox
- Multiple DNN 9.11.0 sites on server all generating "unexpected error occurred on a send" General Exceptions
- Detect if 2sxc Module is the Original or from IRenderService
- DNN 9.13.01 on Windows Server 2019 throws null reference exception when installing extension
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Hosts file entries are cached by the browser and there is no need to restart the pc (just the browser).
It seems you may need to revisit your configuration in IIS: If you are using two sites withe same IP and port number, you will need to use a different host header for each. Check the following link for more info: http://forums.iis.net/t/1210669.aspx?Multiple+web+sites+in+IIS+8+5
example, if you set host headers for the sites as site1 and site2. Then add the following hosts file entry:
127.0.0.1 site1 site2
Then restart your browser and if you navigate to http://site1 and it will load the correct site. Same for http://site2 of course