I am coding a website with php, html, css and a few javascript.
I am on localhost, more exactly LAMP server, and for me to access this "website" the url on the browser is http://localhost/website
.
What I want is to have an subfolder that has a index.php
. So I had made an index.php
on the main folder that includes the subfolder/index.php
and everything works great.
Now I want to create an about page on the subfolder (subfolder/about.php
). However the url should be localhost/website/about.php
and this doesn't work.
How can I have a subfolder like it was the main folder to display?
trying to simplify the question:
website/
subfolder/
index.php
about.php
products.php
etc.php
index.php
imaging that this above is the files directory, probably its possible to understand.
so the link should be website/about.php and not website/subfolder/about.php basically what I need is that the subfolder acts like it was the root folder of the website.