Is there a way to mask the URL extensions for pages on my website with PHP? Example: http://home/subfolder instead of http://home.subfolder.php
As others have stated, this is done with mod_rewrite if you're on an Apache-enabled server. Various questions have been asked similar to this:
mod_rewrite
Related: