You can do it two ways. 1. One way is by editing your .htaccess file on your server by inserting the following lines: RewriteEngine On RewriteCond %{HTTP_HOST} !^(.*).mysite.com$ [NC] RewriteRule ^(.*)$ http://www.mysite.com/$1 [R=301,L] Code (markup): 2. The other way is by using a wordpress plugin if you don't have access to your server configuration files. There's a plugin named Redirection that does everything for you. http://urbangiraffe.com/plugins/redirection/
None of these are working... RewriteEngine On RewriteCond %{HTTP_HOST} !^(.*).mysite.com$ [NC] RewriteRule ^(.*)$ http://www.mysite.com/$1 [R=301,L] Code (markup): This is bringing up internal server error. I think there more to it for a wordpress site...
Have you tried changing via Permalinks in Wordpress? You need an .htaccess like: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_HOST} ^bonnieclyde.info$ [NC] RewriteRule ^(.*)$ http://www.bonnieclyde.info/$1 [R=301,L] RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress Then Options in dashboard go to, Permalink and custom .. I use Code: /%year%/%monthnum%/%day%/%category%/%postname%.html