How can I hide the parameters in Codeigniter?
I have this URL:
http://example.com/profile/1
I want to hide the ‘/1’ in the URL but I’m struggling here. I want to hide it because the 1 in the URL is the user id. So I want it to be hidden from public view
I am using Nginx. I tried rewriting it by using
location ~^ profile {
rewrite ^profile/ http://example.com/profile? permanent
}
but this isn’t working, it just kept on redirecting and redirecting
I tried changing it but it isn’t working.. Please help me out
You can’t. How do you let the server know which profile to look for if the URL doesn’t provide the parameter?