I’ve been having trouble with the ModRewrite on how to appropriately hide query string parameters. Basically something like this..
from:
http://localhost/index.php?page=news&=request=somepage&id=100&sort=asc
to:
http://localhost/news/somepage/id/asc
I’ve attempted to do different variations with it but to no success. For now I make do with revealing query paramaters from the url which is what I’m trying to avoid.
Something like this
in
.htaccessfile write:Also for better using with images, stylesheets, scripts etc. I recommend to add
<base href="index.php">in<head>tag at all pages in your site.