Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...How to avoid REDIRECTION after transferHow to avoid REDIRECTION after transfer
Previous
 
Next
New Post
1/16/2006 7:47 AM
 

Hi - Happy New Year

I am trying to restore a copy of DNN locallly, but hits to localhost are redirected to the previous server.  How can I change this behaviour?

This is the same problem as "Redirect to localhost:4836?", but I cant apply the same solution.

Thanks!

Olav

 
New Post
1/17/2006 3:50 AM
 

If you have access to the database, you'll want to add a record for the new URL.  There is another way to "spoof" this though, so that it appears to work for you, that doesn't involve DNN.

If this is on one machine... simply spoof your network routing by making a change to your "hosts" file which you can find here: c:\windows\system32\drivers\etc\hosts ( note that it has no extension ).

Here is the default format of what you'll find in that file:

# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

127.0.0.1       localhost

But you can add any additional records like this:

127.0.0.1     www.anydomain.com

So that your local machine will now route that domain request to 127.0.0.1, which is your root web.  This works very well for testing your domain setups.


Scott Willhite, Co-Founder DNN

"It is only with the heart that one can see rightly... what is essential is invisible to the eye. "
~ Antoine de Saint-Exupéry

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...How to avoid REDIRECTION after transferHow to avoid REDIRECTION after transfer


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out