WebFaction
Community site: login faq

Hi there,

I'm moving my web sites from 1and1 to Webfaction. One of the features I used at 1and1 was domain forwarding for one of my domains. On 1and1 this was a very straightforward process. I would just enter the 1and1 name servers for say a.com at the registrar and then simply set the target for a.com to b.com at 1and1.

Here at Webfaction it looks like I need to do a DNS override at Webfaction to do the same, but I'm confused as to what information I need to enter on the form. How do I tell it to forward a.com to b.com?

At the same time I want to forward email for alex@b.com to alex@c.com. Is this possible to do through Webfaction? (it was with 1and1, so I assume it is somehow...)

Thank you for your time, --Alex

asked 12 Apr '11, 15:45

kr1st
1113
accept rate: 0%


The easiest way to do a redirect is to create a static/cgi/php application and use the .htaccess file to redirect the request. There is an example of doing so here:

http://docs.webfaction.com/software/static.html#redirect-a-domain-with-a-static-cgi-php-app

permanent link

answered 12 Apr '11, 16:17

aaronh ♦♦
1.3k3
accept rate: 34%

Thanks for the quick answer! I think that will do the trick. I guess I need to read up on how the .htaccess file works. Do I need to include a RewriteCond/RewriteRule combination for each subdomain? (I just want to make sure that a.com and www.a.com are being forwarded to b.com)

(12 Apr '11, 16:52) kr1st

The simplest way to redirect everything to b.com is to put the following in your .htaccess file:

Redirect 301 / http://b.com

Then, any doimains attached to your static/cgi/php application will redirect to b.com

If you have any other questions, feel free to open a support ticket and we will review your .htaccess file.

(12 Apr '11, 17:01) aaronh ♦♦

That's what I will do. Thank you for the very helpful answers you provided! I appreciate it.

(12 Apr '11, 18:15) kr1st
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×128
×32
×17

question asked: 12 Apr '11, 15:45

question was seen: 9,806 times

last updated: 12 Apr '11, 18:15

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM