Chris
Chris

Reputation: 11

.htacess redirect from one url on one domain to a different url on a DIFFERENT domain

How do I redirect from domainA.com/page to domainB.com/pageX These are two different domains, two different pages or urls.

Note that Redirect 301 /page domainB.com/pageX works but then every other page on domainA.com breaks with a 404 error.

Upvotes: 1

Views: 63

Answers (1)

Drav Sloan
Drav Sloan

Reputation: 1562

From .htaccess files:

Options FollowSymLinks
RewriteEngine On
RewriteRule /page http://domainB.com/pageX

Upvotes: 4

Related Questions