Domanda

With many web sites, if you use as the URL, for example, www.example.com/pages/main/index.php, you are accessing the file 'index.php' in the folder 'main' in the folder 'pages.' How would you instead program the web site so that when the URL www.example.com/pages/main/index.php is entered, the primary web application (stored directly in the site root directory) knows that this URL was entered and can serve the proper web page? This is a somewwhat general question, but it should have specific code answers and can certainly be answered, and as such was asked. The web application would be written in PHP.

È stato utile?

Soluzione

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top