Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Moved site and Twitter links WordPress

Hi Guys

i've just merged two sites into

The twitter feed in the sidebar has links that still do to the site


screenshot to help explain:

What's the best way to make sute this does not happen universally?


Answers (5)


Navjot Singh answers:

What exactly are you looking for? You can always do a htaccess redirect from the to so that the links follow.


Eric P. answers:

Set up a .htaccess file on the server that is serving the "" domain to forward (301 moved) those links to the new domain.

I can help with this if you want.

Eric P. comments:

Following up. It looks like you have things working.

I probably should have given the code lines that @Luis Abarca gave.

It's also important to put those lines in the correct place in the .htaccess file. Those are best placed after the "RewriteEngine On" line and after the "RewriteBase /" line, but before any of the other "RewriteRule" lines that are there for WordPress.

Eric P. comments:

I might have been premature saying it's working. It looks like it's not using mod_rewrite now, and it's not changing the domain for error pages. for example shows a "Page Not Found" page without changing the domain. But then is also showing a "Page Not Found" page.

I'm not sure what you've done. Whatever it is, it's not working like it should for those links. Use .htaccess with the lines shown, in the proper place, and it will even redirect "Page not found" URL's to the new domain name.

And if you've done other mods, you should probably undo those mods.


Remy answers:

You can add this to the .htaccess file on the server of

Redirect 301 /


Arnav Joy answers:

When you merged the site then have you changed the path? In the db? .


Luis Abarca answers:

yep, as Eric said,

You should add some rules to your .htaccess like this one

RewriteCond %{HTTP_HOST} ^(www.)?
RewriteRule ^(.*)$$1 [L,R=301]