Welcome to WebmasterWorld Guest from 54.166.189.88

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)

Junior Member

10+ Year Member

joined:Jan 11, 2005
posts: 129
votes: 0


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 Sept 17, 2011 (gmt 0)

Senior Member

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

joined:July 3, 2002
posts:18903
votes: 0


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 Sept 17, 2011 (gmt 0)

Junior Member

10+ Year Member

joined:Jan 11, 2005
posts: 129
votes: 0


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

Senior Member

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

joined:Nov 28, 2004
posts:7999
votes: 0


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