I would like to point a domain name to a specific node, or rather when the request comes from a specific domain, drupal pulls up a certain node.
So http:mydomain.com would internally access http://myotherdomain.com/node/15

Comments

scott falconer’s picture

That's something that might be easiest through your domain registrar..usually there is an option for domain forwarding where you can direct the traffic to a specific page.

Xhristy’s picture

You can modify your .htaccess file so that when someone goes to your sites homepage, they get redirected to your node.

kipkoan’s picture

mod_rewrite can do this - either as a redirect or an internal rewrite. Look at the apache website for details.

gpk’s picture

IIRC you can't do an internal rewrite to another domain (see http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html#RewriteRule and the comments on the first flag described - redirect (R)). So if you still want http://mydomain.com to show in the browser then there are 2 steps:
- "park" mydomain.com on top of myotherdomain.com (so that both these domains show the same site)
- you can then do an internal redirect using .htaccess to http://mydomain.com/node/15, which should give you what you want.

You may also want to have a look at http://drupal.org/project/multidomain and possibly http://drupal.org/project/domain.

gpk
----
www.alexoria.co.uk