By buck2769 on
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
That's something that might
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.
You can modify your
You can modify your .htaccess file so that when someone goes to your sites homepage, they get redirected to your node.
mod_rewrite can do this -
mod_rewrite can do this - either as a redirect or an internal rewrite. Look at the apache website for details.
IIRC you can't do an
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
gpk
----
www.alexoria.co.uk