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

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -