javascript - Is it possible to truncate a URL using php -
i trying find solution truncating url instead of showing - http://mywebsite.com/main/android.php?dir=.%2fandroid should show: http://mywebsite.com/main/android/android.php
not sure whether want in php. can using .htaccess file provide such url transformation.
otherwise this:
if (isset($_get['dir'])) { $dir = $_get['dir']; header('location: ' . $dir . '/android.php'); }
Comments
Post a Comment