WebFaction
Community site: login faq

I would like to point a subdomain i made - blog.mydomain.com to a wordpress site installed on godaddy. the end result will be that the URL that will be displayed after the forwarding will be: blog.mydomain.com even if the site is hosted on godaddy.

What steps do i need to take?

asked 07 Mar '12, 08:55

Yogev Shelly
123
accept rate: 0%


To do this, you can use the basic redirection rewrite rule. However, to keep the domain, you want to use proxy redirection provided by mod_proxy (see 'proxy|P' (force proxy) section). It would be something like this:

Options +FollowSymLinks
RewriteEngine on
RewriteRule ^(.*)$ http://destination_domain/$1 [P,L]

Hope that helps!

permanent link

answered 07 Mar '12, 20:31

ryans ♦♦
5.0k93360
accept rate: 43%

I guess it works, just used to godaddy admin for this action, is there a way to do it trough the admin? or a guide?

(29 Mar '12, 03:02) Yogev Shelly

No, perfoming that from our control panel is not currently possible.

You can follow our redirection guide but write Ryan's suggestion in your .htaccess file instead.

(29 Mar '12, 04:18) iliasr ♦♦

does it matter if i'm using a django app? cause of the PHP thing.

(29 Mar '12, 06:12) Yogev Shelly

No, it doesn't. You can create a php/static/cgi app for your .htaccess file and then a website entry for blog.mydomain.com and link those two together and your django app in another website entry shouldn't be affected.

(29 Mar '12, 06:51) iliasr ♦♦
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
×17
×1

question asked: 07 Mar '12, 08:55

question was seen: 6,980 times

last updated: 29 Mar '12, 06:51

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