-
-
Save filipelperes/088b8fc8dcea5d7134d7b9195b854dca to your computer and use it in GitHub Desktop.
URL Sem Extensão PHP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(isset($_GET['url'])) { | |
if(file_exists($_GET['url']).'.html') { | |
include($_GET['url'].'.html'); | |
} else { | |
include('404.html'); | |
} | |
} else { | |
include('home.html'); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment