login community faq

Hi, is there one "best way" to configure redirects from mydomain.com to www.mydomain.com? I'm running a rails 3 application.

Thanks!

asked Dec 31 '10 at 11:43

kevindickerson's gravatar image

kevindickerson
2126


Indeed there is. We have documentation doing exactly this right here :)

answered Dec 31 '10 at 11:48

David%20L's gravatar image

David L ♦♦
132113

So, in the Websites control panel area, I have my Rails website already pointing to the mydomain.com subdomain, and my Site apps configured for my Rails app, and the / URL path.

When I try to add a new site to the mydomain.com subdomain, and then add the "redirector" Static/CGI/PHP app, I get an error message since my main app is already configured similarly. What is the proper way to set this up?

(Dec 31 '10 at 12:17) kevindickerson kevindickerson's gravatar image
1

First remove mydomain.com from the site that is serving the Rails app, then create the new site to serve your redirect app from mydomain.com.

(Dec 31 '10 at 12:32) seanf ♦♦ seanf's gravatar image

First I had to click Domains under Domains/Websites, and then choose to edit my domain. Then I added a new subdomain for www.mydomain.com, and then applied my main application to www.mydomain.com and the redirector Static/CGI/PHP app to the non-www mydomain.com.

(Jan 03 '11 at 13:48) kevindickerson kevindickerson's gravatar image
Your answer
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
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

Tags:

×76
×73
×45
×40

Asked: Dec 31 '10 at 11:43

Seen: 1,575 times

Last updated: Feb 09 '11 at 20:26

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited