WebFaction
Community site: login faq

Hallo,

On the root url of my website, there is a mod_wsgi 4.5.3/Python 3.5 application which serves a Django application.

However, I need to add a redirect from mysite.com to www.mysite.com

According to the docs:

10.In the App category menu, click to select Static.

11.In the App type menu, click to select Static/CGI/PHP-5.6.

12.Click the Save button. The application is installed and added to website’s list of applications.

However, this is not accurate since at the url / already exists a Django application and the relevant error appears when trying to save the application.

Help!

asked 22 Aug '16, 18:11

raratiru
4110
accept rate: 33%

edited 22 Aug '16, 18:12


The idea is that you create a second site that will serve the redirect app to send traffic to your main site. So:

  1. Remove the domains/subdomains that you want to redirect from the main site.
  2. Create a second site to serve your redirect app on those domains/subdomains, so that they can direct traffic to the main site.
permanent link

answered 22 Aug '16, 18:26

seanf
12.2k41836
accept rate: 37%

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:

×909
×75
×62

question asked: 22 Aug '16, 18:11

question was seen: 1,906 times

last updated: 22 Aug '16, 18:33

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