Skip to main content
Ask A Question
You’re not receiving notifications from this thread.

Change Domain of Server?

Servers • Asked by Ketan Anjaria

I have an app at but I just bought
How do I set it up where all previous links to redirect to
ie should redirect to

The steps required depend on what server you're using but basically you're just changing your server configuration so it responds to the new domain. I use nginx and something like the following would work:
server {
listen 80;
return 301$request_uri;
I'm on mobile and can't select to do that in a code block. What this block does is send a 301 which states the content has moved. Anything in search engines or bookmarked wont suddenly stop working

Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 31,575+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.