WebFaction
Community site: login faq

[I apologize in advance, I'm afraid this is a moronic question, but I have been trying to find an answer through Apache docs + StackExchange and have come up short.]

I have a static site at web faction. It's replacing a previously-existing website somewhere else. At the other hosting firm, they have been kind enough to redirect traffic to my new, webfaction site.

So I need to configure the new site with ServerAlias to make it accept traffic redirected from the old address (as well as normally directed traffic).

I have been trying over and over, but every time I put a ServerAlias in my .htaccess file at WebFaction, I end up with 500 errors. Following the suggestions, I have looked in the .log files for my web site, but I don't see anything in there to give me a hint about what's going wrong.

Does anyone have a simple .htaccess file for a site that accepts traffic through normal access and also through redirection? If so, I would be very grateful.

asked 27 Oct '13, 13:40

rpg
11
accept rate: 0%


You can't use ServerAlias on the shared apache server because it does not belong in the .htaccess context it only works in the virtual host context, which belongs in the main apache conf file. We can't modify this for you on the shared server without risking downtime and instability, your option would be to build a private apache stack if you needed to use ServerAlias. However I don't quite see how you would need this, if the other host is pointing traffic here it should 'just work' and not matter that it was 301 redirected. You may consider sending us a support ticket so we can see what you mean firsthand.

permanent link

answered 27 Oct '13, 18:37

johns ♦♦
5.3k212
accept rate: 23%

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:

×75
×74
×30

question asked: 27 Oct '13, 13:40

question was seen: 2,257 times

last updated: 27 Oct '13, 18:37

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