Alright, so the only way I know of changing links to not show the file extensions;
this yourwebsite.com/customlink.php
to yourwebsite.com/customlink
is either creating a folder called customlink
and shoving an index file in there. Or creating a 404 page which snoops around the URL and grabs whatever string is behind the last /
and does whatever to show the proper content.
My question is if this way of solving the problem is straight out idiotic, or not? I'm doing this because in my mind it saves space, let me explain: Every page that needs a customlink
are the same with some bits and content taken from other places, so instead of creating X amount of folders and index files that includes a main file, I'll just have one 404 file that can handle it.
I apologize in advance if this is really stupid