title: How to create path redirections
body: <p>I want to create internal path redirections like in Wordpress e.g.</p>
  
  <p>if i have a post (having <code>permalink = 'hello-world')</code> but still if I type <code>'<a href="http://localhost/hello/" rel="nofollow noreferrer">http://localhost/hello/</a>'</code>, I get redirected to <code>'<a href="http://localhost/hello-world" rel="nofollow noreferrer">http://localhost/hello-world</a>'</code></p>
  
  <p>So what code do i use to automatically go to that page with that correct URI, i.e. <B>change the URI that gets displayed in the address bar.</B> Perhaps this is something other than using .htaccess rules (except the use of it for facilitating the basic presence of permalinks)??</p>
  
  <p>perhaps this question might be a little trivial but i couldn't seem to find effective help on google.</p>