How to automatically add trailing slash in address bar? |
[eluser]vadimyer[/eluser]
Hello! The situation is: 1) User enters some URL in the address bar, like: http://codeigniter.com/hello 2) I need CI to automatically redirect to this URL but with trailing slash in the end. I need this to let search engines know that this is the only one original page and to not allow duplicate content (the page w/o trailing slash). 3) At the same time I need some pages to be like http://codeigniter.com/hello/page.html It's the case in which I don't need trailing slash to be automatically added. I guess I need some kind of redirection for all of this, but can you please show me an example? Thanks in advance!
[eluser]joakley77[/eluser]
Would using 403 redirects be a viable solution for you? |
Welcome Guest, Not a member yet? Register Sign In |