Here it is how we can do that magic, if( isset($_GET[‘function’]) ) { switch( $_GET[‘function’] ) { case ‘dosomething’: dosomething(); break; case ‘dosomethingelse’: dosomethingelse(); break; } } And then link to script.php?function=dosomething url rewriting Benifit : When a search engine visits the dynamic url like product.php?id=test it does not give much importance to that URL as search engine sees “?” sign treat it as a url which keeps on changing. so we’re converting the dynamic URL like the product.php?id=test to …