Site redirect

Wonder if anyone’s got any idea how to do this,

I’ve got a mobile version of my website at…

http://red91rails.mofuse.mobi/

and I’ve setup a dns record for -> mob.red91.com

what i now want to do is point any traffic going to mob.red91.com to the
mofuse web address.

could this be done in nginx or can i tweak it with a dns redirect?

can dns do a redirect to a web address?

any ideas greatful,

John.

server {
listen 80;
server_name mob.red91.com;
rewrite /(.*) http://red91rails.mofuse.mobi/$1 redirect;
}

Eden Li wrote:

server {
listen 80;
server_name mob.red91.com;
rewrite /(.*) http://red91rails.mofuse.mobi/$1 redirect;
}

perfect!

works like a charm, thanks so much Eden Li,

Your the best!

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs