homepage Welcome to WebmasterWorld Guest from 23.20.220.61
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / WordPress
Forum Library, Charter, Moderators: lorax & rogerd

WordPress Forum

    
Redirection Subdomain site/blog to another Subdomain site/blog
Would like to redirect subdomain to another subdomain in the same network
calvinmicklefinger




msg:4363648
 3:51 am on Sep 17, 2011 (gmt 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]

 

g1smd




msg:4363708
 7:54 am on Sep 17, 2011 (gmt 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.

calvinmicklefinger




msg:4363770
 3:04 pm on Sep 17, 2011 (gmt 0)

Doesn't seem to work in my install of WP 3.2.1

rocknbil




msg:4364310
 3:47 pm on Sep 19, 2011 (gmt 0)

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / WordPress
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved