3
Would you like to know if there is any way to hide a subdirectory or variable in the friendly url? Example:
.htaccess
RewriteRule ^([a-z,0-9,A-Z,_-]+)/categoria-([a-z,0-9,A-Z,_-]+)$ index.php?link=6&categoriaid=$1
in this case, I pass the category id via the url that would look like this :
www.com.br/19/categoria-teste
in this case works ok, but what I really want is to hide the ide from the category to the user and show so
www.com.br/categoria-teste
but of course, passing the id
of the variable occult.
another way I’ve been searching would be to pass the id via Session while the url would be id-free, so when I clicked the button, I would create asession with the id and on the other page I would receive Session and delete it, so the url is clean , but I couldn’t find a way to create Session with by clicking on a link
– Jonnys J.
@Jonnysj. the idea is good, but it wouldn’t work to index on google.
– Guilherme Nascimento
the legal Uilherme, thank you for informing me, then I will not waste time trying to create it , I will leave same pattern
– Jonnys J.