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

[eluser]Leevi Graham[/eluser]
I implemented this for ExpressionEngine and it seems to be doing the trick.

# Add Slash
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteCond $1 ^(members|contact|cms-customisation|site|ee-support|wp-content|P[0-9]{2,8}) [NC]
RewriteRule ^(.*)$ $1/ [L,R=301]

Basically if its not a file, directory or one of my template groups I redirect to the exact same thing with a trailing slash.


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