How can I make my subdomain to behave exactly like http://projects.drupal.org/?

I tried to use what is writen in http://drupal.org/node/4810, but like it is writen on the page, the solution given only redirects (that is, the URL changes in the process).

But, if you go to http://projects.drupal.org/, the URL stays there... How is that possible? What is Drupal doing on it's .htaccess, that is not writen on the documentation? Some secret? ;)

Miguel

Comments

mcduarte2000’s picture

Is this really a secret? :)

Miguel Duarte

Webmaster of: Lisbon Guide & Love Poems

eas-1’s picture

It looks to me like projects.drupal.org just uses DNS to point to the same server as drupal.org. It displays the same content as drupal.org and all the links are to other nodes on drupal.org

I'd really like to be able to have a single drupal installation, with a single database, but multiple front pages depending on the subdomain/host header used to access the site.

yelvington’s picture

If you want a single Drupal installation, single site, with alternate front pages depending on the sitename, just use the front page module, write a bit of PHP to look at the value of $_SERVER['HTTP_HOST'], and include() the proper front page template depending on the value.

mayhem-1’s picture

You can do this by creating your subdomain eg http://projects.drupal.org, but not redirecting it. Then it will automatically redirect http://projects.drupal.org to http://drupal.org/projects, but the url will remain as http://projects.drupal.org

fixus971’s picture

For subdomain: http://felisari.fixweb.it
with dir in http://www.fixweb.it/felisari

in .htaccess

# Set the default handler. "/" is Magic
DirectoryIndex /index.php

www.fixweb.it ^_^ Auguri & Humor ^_^