DaveGears86
Member
I have come across a website which has a strange linking structure (or, atleast it's strange to me).
The home page links to folders instead of .html or .php extensions (e.g. - "http://www.example.com/about") and inside this "about" folder is a "index.php" file which is the "About" webpage (this is the same folder/index.php structure for all the other pages on the site, even "home") - I understand how this works, because index.php is default in each folder. But the next part is where I get very confused -
If I create "newpage.php" and put this into the "home" folder (so that the "home" folder now contains two files = "index.php" and "newpage.php"). And then if I create a new link on the "index.php" page linking to "newpage.php" and then test the link, newpage.php doesn't display, instead I get taken to the index.php (always of "home" folder)
Does anybody know what is at work here? I just want to revert this back to a simple structure where all the pages (.htm/.php) are in the same directory and not segregated by their own personal folders.
Thanks
The home page links to folders instead of .html or .php extensions (e.g. - "http://www.example.com/about") and inside this "about" folder is a "index.php" file which is the "About" webpage (this is the same folder/index.php structure for all the other pages on the site, even "home") - I understand how this works, because index.php is default in each folder. But the next part is where I get very confused -
If I create "newpage.php" and put this into the "home" folder (so that the "home" folder now contains two files = "index.php" and "newpage.php"). And then if I create a new link on the "index.php" page linking to "newpage.php" and then test the link, newpage.php doesn't display, instead I get taken to the index.php (always of "home" folder)
Does anybody know what is at work here? I just want to revert this back to a simple structure where all the pages (.htm/.php) are in the same directory and not segregated by their own personal folders.
Thanks