A few minor problems; a solution.

took over our company"s website two days ago:

www.xxxxx.net/simple/1.html

now I have a problem. According to my logic,
www.xxxxx.net this is the domain name;
1.html is the page under the simple folder;

but I opened the server and found that
clipboard.png

simple is not the folder I want, but a HTML file. And I can"t find the file 1.HTML on the server; there is no link to 1.HTML in
simple, why? How do I find this 1.HTML?

Mar.31,2021

normal static files are what you understand.


first of all, you need to find the home root directory of index.php or index.jsp background in the website, and then you can know your static path


.

I don't know if you have ever done dynamic website development (for example, one of the core functions of these website technologies of Asp.net, JSP, PHP), is routing, that is, the content returned can be set according to the url, program requested by the user. By default, the physical path of static files such as html on the server is the same as the url request path, but this time it is not, so you have questions.

website programs can hijack any request. The rules are set programmatically: for example, for a request with a path of "/ simple/1.html", the programmer sets it to return the simple.html file in a certain directory directly, and even you can return the content of a picture to the client.

when you take over this project, to find the server file corresponding to url, the key is to find the route mapping rules written in the program. It looks like it should use regular matching.


may have done route map resolution.
for example:

{
    path: '/simple/1.html',
    file: 'xxx/simple.html'
}

of course, this is just a guess. Take a look at the source code configuration

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1c2422b-32e48.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1c2422b-32e48.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?