By default, Perch Runway allows URLs to be accessed both with and without a trailing slash. This can be bad for SEO as Google considers these to be two different pages. To eliminate the trailing slash on non-directories, you can add this to your .htaccess:

<IfModule mod_rewrite.c>

    RewriteEngine On

  # Eliminate trailing slash
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.+?)/$ /$1 [R=301,NE,L]

</IfModule>

This should be added before the Perch Runway lines that you inserted during setup.

Categories: