# Appointing domain to a file (other than index)

**URL:** https://forum.kirupa.com/t/appointing-domain-to-a-file-other-than-index/228012
**Category:** Uncategorized
**Created:** [June 4, 2007, 4:48pm UTC](https://forum.kirupa.com/t/appointing-domain-to-a-file-other-than-index/228012 "2007-06-04T16:48:32Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jusko](https://avatars.discourse-cdn.com/v4/letter/j/0ea827/32.png) [@jusko](https://forum.kirupa.com/u/jusko)
#### Post date: [June 4, 2007, 4:48pm UTC](https://forum.kirupa.com/t/appointing-domain-to-a-file-other-than-index/228012/1 "2007-06-04T16:48:32Z")

</div>

Hi!!!

I have a question:  
Is it possible to appoint a domain (ex:www.mynewdomain.com) to a specific file in a server instead of the index file?  
I have already a domain ([www.mydomain.com](http://www.mydomain.com)) appointing to that server using the index.html file.  
It’s kinda having two websites in the save server. One domain appointing to the index.html file, and the other domain appointing to a different file…

hope i made myself clear on this one 🙂

I heard that i could do this with a php script

thanks a lot!!!

cheers
