Hello, mate. In that case, it would appear that you use Friendly URLs with .htaccess, as mentioned in several of our companions' comments.
In your case you should pass the parameters to the URL and so will open the file with the parameters accordingly.
Here's an example:
RewriteEngine on
RewriteRule ^([a-zA-Z])/([a-zA-Z0-9_-]+)/([0-9])$ index.php?page=$1&p=$2&id=$3 [QSA]
In this case:
RewriteEngine on: A must for creating your friendly URLs. Put this above where you will specify your rules. RewriteRule: indicates the beginning of your rule. ^ ([a-zA-Z]) / ([a-zA-Z0-9 _-]) / ([0-9]) $ indicates with regular expressions the format of the URL that will fall into this In this case, the URL should start with a value of a up to uppercase or lowercase / a value up to uppercase or lowercase z or numbers, as well as "_" and "-" / numeric value . Finally, index.php? Page = $ 1 & p = $ 2 & id = $ 3 [QSA] indicates which URL it will access through this rule, specifying $ 1, $ 2 and $ 3 the regular expressions in their due parameters. [QSA] should appear at the end, to specify that your rule contains a query string ("Query String Append"), in this case, our parameters.
Using this rule I cited, link would be the same as accessing < em> link .
Important: Make sure apache mod rewrite is enabled.