Welcome Guest, Not a member yet? Register   Sign In
force or remove trailing slash: duplicate cache issue
#1

[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!


Messages In This Thread
force or remove trailing slash: duplicate cache issue - by El Forum - 01-21-2008, 09:51 PM
force or remove trailing slash: duplicate cache issue - by El Forum - 06-09-2008, 06:50 PM
force or remove trailing slash: duplicate cache issue - by El Forum - 08-22-2008, 01:50 AM
force or remove trailing slash: duplicate cache issue - by El Forum - 08-22-2008, 02:14 AM
force or remove trailing slash: duplicate cache issue - by El Forum - 08-22-2008, 02:35 AM
force or remove trailing slash: duplicate cache issue - by El Forum - 11-17-2008, 11:46 AM
force or remove trailing slash: duplicate cache issue - by El Forum - 02-16-2009, 01:20 AM
force or remove trailing slash: duplicate cache issue - by El Forum - 06-04-2009, 06:37 PM
force or remove trailing slash: duplicate cache issue - by El Forum - 01-01-2011, 05:48 PM
force or remove trailing slash: duplicate cache issue - by El Forum - 01-03-2011, 11:22 AM
force or remove trailing slash: duplicate cache issue - by El Forum - 08-06-2012, 12:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB