force or remove trailing slash: duplicate cache issue |
[eluser]oliverkalen[/eluser]
I would like to force consistency in my URI's to prevent duplicate cache entries http://website.com/uri/here http://website.com/uri/here/ Visiting both of these pages will create 2 separate cache entries. My mod_rewrite in htaccess currently looks like: RewriteEngine On RewriteBase /baseurl/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] Is there a mod_rewrite solution to this? or will it need to be done through CI? I can deal with/without the trailing slash - whichever is easier. Thanks! |
Welcome Guest, Not a member yet? Register Sign In |