I need to redirect a domain to a specific section in Drupal. My DNS works, Drupal works.
Creating virtual host on my webserver:
$HTTP["host"] =~ "www.mywebsite.com" {
server.document-root = "/var/www/website/?q=content/specificpage
"
}
or
/var/www/website/content/specificpage
didn't work... the issue is that the path includes arguments appended after the "?"
Or should I instead point the new domain to another folder with a php script and forward the user from there ?
thanks
Latest Version
$HTTP["host"] =~ "(^|\.)newdomain\.com$" {
url.redirect = (
"^/(.*)" => "http://www.website.com/index.php?q=content%2Fspecificpage",
"" => "http://www.website.com/index.php?q=content%2Fspecificpage",
"/" => "http://wwww.website.com/index.php?q=content%2Fspecificpage"
)
}