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

[eluser]danoph[/eluser]
I've been looking for a solution for a while now, and this one works perfectly on my mediatemple server hosting http://graphicleftovers.com (built in codeigniter + wordpress for blog), as is without any editing:

Code:
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /

    # this adds trailing slash
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_URI} !(.*)/$
    RewriteRule ^(.*)$ $1/ [R=301,L]

    # this gets rid of index.php
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php/$1

</IfModule>

Thanks a lot @mania!


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