I've 3 pages:


I must possess a new domain (e.g http://domain2.com) and map these pages towards the new domain using .htaccess and Apache rewrite rules.

therefore the following could be planned:

http://domain2.com would show http://www.domain.com/page-one
http://domain2.com/info would show http://www.domain.com/page-two
http://domain2.com/contact would show http://www.domain.com/page-three


You cannot truly perform a rewrite across domain names, however, you can perform a redirect:

RewriteRule ^info$ http://domain.com/page-two [R=301]

(It may be easy to simulate a rewrite with a few cURL chicanery, if that is really what you are opting for)

If both sites reside in exactly the same directory you could do this something similar to this.

RewriteCond %{HTTP_HOST} ^domain2.com$ [NC]
RewriteRule ^$ /page-one
RewriteCond %{HTTP_HOST} ^domain2.com$ [NC]
RewriteRule ^info$ /page-two
RewriteCond %{HTTP_HOST} ^domain2.com$ [NC]
RewriteRule ^contact$ /page-three