how to 301 redirect ip to domain? basically my site is accessible from abc.com and the relevant ip on which it is pointing
i have read major tutorials and questions on how to 301 redirect the ip to my main domain but everything seems irrelevant - either i couldnt locate the relevant lines to be changed or the versions of ubuntu are different. any help here is appreciated?
create a default server block if you haven’t got one already with server { listen 80 default\_server; return 301 http://abc.com/; } if you already have a default server block, all you have to add is the return line. this will redirect any requests that do not match a configured virtual host (server block in nginx)
The question is can you get out of your computer and after that the thing to check is can you resolve any domain names. Try going to a command prompt and checking to see if you can ping your computers IP address then the gateway then try to resolve domain names.


ipconfig /all


Will give you the information you need to check these things.


nslookup google.com


If that does not come back with a IP address then you have problems with your DNS server. <p>hi peter</p>
<p>i think you should be fine. redirecting old urls that no longer exist is a best practice and helpful for users. of course, those 301'd urls should drop out of google's index after a while. but this should be okay. you only want urls to appear in serps that actually do have content.</p> hey there!

terribly sorry for all the delay but i must have totally missed your message and the thread. just posted the solution to another public thread you opened:

[image]

[still using custom domain on free tier](https://community.auth0.com/t/still-using-custom-domain-on-free-tier/59611/15) [general](/c/general/6)

got most of the information i need. will continue … you have your own domain  

I'm assuming its for Holy Spirit Catholic Church Fountain Valley??  

Your domain probably assigns IP addresses. I highly recommend you get someone with IT networking experience to help you  

I wouldn't want someone not knowing what they are doing playing on my domain  

If you insist you need to do it post back and we can start trhye procedure with no guarantees  

Does the desktop have a wireless network card installed ?lLok at the back and tell me if you see an antenna or is there some cable plugged into a USB port and at the other end have something a little bigger then a Memory stick on the end of it? <p>is the page generating search traffic? would it be possible to change the content of the page so that you are in compliance and still able to get the traffic?</p>
<p>you absolutely need to address the dmca, but i would start with a 301 redirect in order to recoup any value the page had rather than a 404. that is if you can't find another purpose for the page, such as changing the content.</p> You will want to look at the httpwebrequest class and its methods. You can feed it a URL and get back the source (page) to do with as you will. The MSDN articles that come up of you google httpwebrequest will help you. we can’t, i am sorry. send an email from the same email address that was associated with your account to 
support(/@)[cloudflare.com](http://cloudflare.com) 
the trust and safety team will take care of it, but be prepared to answer a lot of questions. 
meanwhile you could change the nameservers for your domain back to those… If I understand the question, it's much easier than people are saying - if you want to let WebClient do all the nuts and bolts of the request (including the redirection), but then get the *actual* response URI at the end, you can subclass WebClient like this:



```
class MyWebClient : WebClient
{
    Uri _responseUri;

    public Uri ResponseUri
    {
        get { return _responseUri; }
    }

    protected override WebResponse GetWebResponse(WebRequest request)
    {
        WebResponse response = base.GetWebResponse(request);
        _responseUri = response.ResponseUri;
        return response;
    }
}

```

Just use MyWebClient everywhere you would have used WebClient. After you've made whatever WebClient call you needed to do, then you can just use ResponseUri to get the actual redirected URI. *You'd need to add a similar override for GetWebResponse(WebRequest request, IAsyncResult result) too, if you were using the async stuff.* see above to learn how to setup and configure ip passthrough mode for your router. if you need further assistance with your ip passthrough setup and configuration contact connectech support. jared, at&t community specialist after further research and coming across [this answer to a similar issue](https://community.auth0.com/t/failed-silent-auth-login-required/33165/39), i made the switch to auth0’s custom domain solution and it fixed all of the issues mentioned above. this topic can be closed!