Welcome to WebmasterWorld Guest from 54.145.144.101

Forum Moderators: rogerd & travelin cat

Message Too Old, No Replies

Redirection Subdomain site/blog to another Subdomain site/blog

Would like to redirect subdomain to another subdomain in the same network

   
3:51 am on Sep 17, 2011 (gmt 0)

10+ Year Member



I would like to do a 301 redirect to send visitors to a different subdomain than the one they have attempted to reach. I tried to use the Wordpress plugin "Redirection," but I could not get it to work.

As an example, I would like a visitor who is sent to blog/site http://12345.mysite.com to be redirected to http://45678.mysite.com

I have tried the Redirection plugin and the WPMU Domain Mapping plugin. I could not get Redirection to work, and I did not understand how to set up the CNAME thing with the Domain Mapping plugin. (I don't even know what a CNAME is.)

Any help you can give me is appreciated!
Kirk

[edited by: lorax at 11:37 am (utc) on Sep 17, 2011]
[edit reason] delinked examples [/edit]

7:54 am on Sep 17, 2011 (gmt 0)

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



Copying from one of the 8000 WebmasterWorld Apache forum posts which shows what to do:

RewriteEngine On
#
RewriteCond %{HTTP_HOST} ^other\.example\.com
RewriteRule (.*) http://www.example.com/$1 [R=301,L]


Use example.com in the forum to supress URL auto-linking.
3:04 pm on Sep 17, 2011 (gmt 0)

10+ Year Member



Doesn't seem to work in my install of WP 3.2.1
3:47 pm on Sep 19, 2011 (gmt 0)

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member



You need to put it above the Begin Wordpress/End Wordpress directives.