Ask your WordPress questions! Pay money and get answers fast! (more info)

Moved site and Twitter links

Hi Guys

i've just merged two sites

coachbarrow.com into 7connections.com

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

Example: http://coachbarrow.com/suicide-notes-enthusiasm-and-disconnections/

screenshot to help explain:

http://screencast.com/t/5zRziEsKTIF

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

Thanks
Steve

Answers (5)

2013-08-23

Navjot Singh answers:

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

2013-08-23

Eric P. answers:

Set up a .htaccess file on the server that is serving the "coachbarrow.com" 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. http://coachbarrow.com/suicide-notes-enthusiasm-and-disconnections/ for example shows a "Page Not Found" page without changing the domain. But then http://7connections.com/suicide-notes-enthusiasm-and-disconnections/ 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.

2013-08-23

Remy answers:

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

Redirect 301 / http://7connections.com

2013-08-23

Arnav Joy answers:

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

2013-08-23

Luis Abarca answers:

yep, as Eric said,

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


RewriteCond %{HTTP_HOST} ^(www.)?coachbarrow.com
RewriteRule ^(.*)$ http://7connections.com/$1 [L,R=301]