I’ve been given access to a website that’s well over 15 years old, but when I’m browsing the Cpanel for the correct index file, all I’m given is an index.php file, which upon saving or opening to edit, contains nothing BUT PHP code.
However, if I remove that index.php file from the web root directory, the site will obviously not load.
I also did a test where I viewed the source of the homepage within Chrome, copied EVERYTHING, and pasted it into a fresh text document to save as a new “index.html”. Removing the index.php and allowing the index.html document to be loaded works just fine. However, any subsequent pages will try to go back to the index.php file when clicking a link to the return to the home page. Since I expected these links to be pointed to a php file, I tried saving the replacement index.html as a php file, only to discover that caused the CSS styling to be broken and not be applied.
I’m not sure how they initially developed this site, or who did it, and the person who managed it all these years was let go from the company and I myself am not allowed to even make contact with said individual.
I’ve worked with php sites before that I coded myself by hand, so I knew what to look for, but I’m totally at a loss here!
I did see at the top of the php files a reference to CRE Loaded (which I believe now is eCommerce or Loaded Commerce) and oSCommerce, which leads me to believe this website was designed using a template similar to a service like Shopify. If that’s true, I would likely need access and edit this site through that template editor, correct?