Hi there i just wonder to know about how to make link like this exmple : i have link : http://halaman.com/download.php?id=123abcd Code (markup): and want to make that link to : http://halaman.com?123abcd Code (markup): how?
U have to use the code from download.php in index.php in the sense the get method in index.php Hope u got what i mean
For this /download.php?id=123abcd to this /123abcd, create a .htaccess file and place the following code into it and put the file into your root/ www public_html or htdocs folder. Options +FollowSymLinks RewriteEngine on RewriteBase / RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule (.[^/]*) /download.php?id=$1 [NC,L] RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /download\.php\?id=(.[^/]*)\ HTTP/ RewriteRule ^download\.php$ /%1? [R=301,L] PHP:
If you want to avoid htaccess, you will need to do something like this: http://halaman.com?Download*123abcd And on topmost of your index.php you do: list($page,$_GET['ID']) = explode('*',$_SERVER['QUERY_STRING']); if($page == 'Download') { include('download.php'); die(); } PHP: