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
77 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
- Create an IIS web request activity light
- Writing/Overwriting to specific XML file from ASP.NET code behind
- What is the point of definnig Asp.net Intrinsic Objects In different places and what is the different betwen them?
- Deleting Orphans with Fluent NHibernate
- IOrderedEnumerable to vb.net IOrderedEnumerable Conversion
- Entity Framework Code First with Fluent API Concurrency `DbUpdateConcurrencyException` Not Raising
- Getting deeply embedded XML element values
- What is best way to check if any of the property of object is null or empty?
- NuGet - Given a type name or a DLL, how can I find the NuGet package?
- ASP-MVC Code-first migrations checkbox not active
- How do i add onclient click to my jquery button
- Jquery: Change contents of <select> tag dynamically
- Retrieving data from Oracle database
- ASP.NET: Fill Textbox field upon dropdownlist selection by user
- Why web API return 404 when deploy to IIS
Related Questions in IIS
- Create an IIS web request activity light
- Why web API return 404 when deploy to IIS
- Adding site Binding programmatically IIS 7.5
- .net Web Api 2 Owin authentication token expires suddenly and often on IIS 8.5
- Redirecting subdomain to directory on Azure
- Saving Image To a Temp Folder is Loosing Session
- The page cannot be displayed because an internal server error has occurred on server
- Approach for performing long running tasks in .NET
- Why does IIS Anonymous Authentication turn on by itself after I publish my project to server?
- IIS 7 ERR_CONNECTION_TIMED_OUT only with public IP
- Maximum value for IIS .NET Compilation Batch Time-out
- ASP.Net 1.1 app on IIS 7 waiting threads
- File upload web api 2.0 error after deployment on IIS 8.5
- nginx and IIS - dealing with invalid hostname and SSL
- Allow console application to access Windows Authenticated web app
Related Questions in DOTNETNUKE
- Getting errors while building DNN Code in VS 2010
- DNN - How to Transfer Production Version Code in Local with enabling debug
- DNN Can`t add reference
- How to use different css for different languages in dnn?
- dotnetnuke localresourcefile does not return resource file name for dynamically loaded control
- Moving strings and triggering events with jquery
- Error after upgrading from DNN 7.0 to 7.4.1 (Version Upgrade package)
- Can we create a child with name child.parent using DNN community edition?
- OnEntryAdded doesn't fire in RadDropDownTree When I Change the Value of the DropDownTree
- DNN - dnn.js reference duplicated when ClientResourceManagement is enabled
- DNN 7.4 friendly URL (gclid)
- dnn how to uniquely identify instances of the same module
- DNN - Redirecting to installation wizard
- IIS Redirects me to another URL
- DNN (DotNetNuke) module exceptions not logging
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 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