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

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -