I have a idea to load all the page/path under same URL or root domain. Is it possible to do this?.
Example :
Let say my domain is example.com
and i have 3 pages index.php
, contact.php
, about/social.php
and each file have different content. I want to load all file under my root domain if they click URL of any page in root file index.php
Example 2 :
- When someone visit example.com it will automatically (default) load
index.php
content and it have a link to other pages likecontact.php
andabout/social.php
- When someone click a link of
contact.php
inside my root domainexample.com
, it will load the contact ofcontact.php
but it should not change toexample.com/contact.php
instead it remain sameexample.com
with the content ofcontact.php
Is this possible?. If yes, then you can help me with code/syntax in PHP or Javascript or htaccess