WebFaction
Community site: login 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 31 Dec '10, 11:43

kevindickerson
21136
accept rate: 0%


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

permanent link

answered 31 Dec '10, 11:48

David L ♦♦
1.4k13
accept rate: 45%

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?

(31 Dec '10, 12:17) kevindickerson
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.

(31 Dec '10, 12:32) seanf

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.

(03 Jan '11, 13:48) kevindickerson
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
×108
×76
×75

question asked: 31 Dec '10, 11:43

question was seen: 3,765 times

last updated: 09 Feb '11, 20:26

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 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