I need to ask if it's possible to hide what appears after the ?
for example, you have one link like this:
http://www.example.com/product.php?id=10
how can I hide the ?id=10
, I'm already hiding the .php
with the following code:
RewriteEngine on
RewriteCond %{THE_REQUEST} /([^.]+)\.php [NC]
RewriteRule ^ /%1 [NC,L,R]
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^ %{REQUEST_URI}.php [NC,L]
But I would like to know how can I hide what is after the ?
because currently what it appears like this: http://www.example.com/product?id=10
and should appear like this: http://www.example.com/product
Can someone help me please?