简体   繁体   中英

How can you view the filename of a webpage if it has been hidden

I'm trying to find out the name of the default page of a domain for a site i'm working on.

It has been set so that the name of the default page isn't shown, so it just shows the domain name in the address bar and ends after .com/

Is there any way to view what the name of this file is?

No there isn't. Quite probably it's index.php

Just a shot in the dark: if your web server is Apache and there is a .htaccess file in the root folder look into it for a line starting with DirectoryIndex . If it's there the first filename would be the default.

I not quite sure I understood your question, I just hope I can help:

The server hides the /filename when it is the default one, index.html or index.php or default.html or something of that kind.

You say you have two sites on the server.

I don´t know you service provider but with cPanel in some accounts types (not dedicated) inside your public_html folder you should see a directory called "your_second_sites_name.com" and there you will have and index.html that would be your second´s site public_html.

I hope this helps you out if no, please add a comment and I´ll gladly edit my answer! good luck!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM