> is it possible to make something like this
> the domain.com and domain.org "shows" to the same file index.php
> on the server.
> But i want somethingh like this
> domain.com -> /index.php
> domain.org -> /index2.php
> and this should be done in .htaccess
You can set diffent access config filenames for each virtual server in
httpd.conf, then use
.htaccess_com: DirectoryIndex index.php
.htaccess_org: DirectoryIndex index2.php
Or use mod_rewrite to rewrite the request based on the hostname, or even
better and more portable, change index.php to check for the hostname and
perform the appropriate action.
--
Klaus Johannes Rusch
http://www.atmedia.net/KlausRusch/