如何制作$ _SERVER ['HTTP_REFERER']中显示的默认索引文件

Apache uses index.* as the default file if a viewer goes to a website with domain name domainname.com and the url in browser will show www.domainname.com. If we use $_SERVER['HTTP_REFERER'] in linked page from this default page, then we only see the www.domainname.com but cannot get the real file name of the default page (index.php). Is there a way that we can get referral page filename when it was hidden due to it is a default page? Or is there any way that we can make default index page shown in the $_SERVER['HTTP_REFERER'] request?