By mcduarte2000 on
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
Secret? ;)
Is this really a secret? :)
Miguel Duarte
Webmaster of: Lisbon Guide & Love Poems
It looks to me like
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.
Multiple front pages
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.
You can do this
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
htaccess Solution for SubDomain with Clear url!!
For subdomain: http://felisari.fixweb.it
with dir in http://www.fixweb.it/felisari
in .htaccess
www.fixweb.it ^_^ Auguri & Humor ^_^