ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

.htaccess force end slash and lowercase on URLs

December 29, 2012 9:49pm

Subscribe [1]
  • #1 / Dec 29, 2012 9:49pm

    transparentb

    24 posts

    I’m using the .htaccess from documentation:

    RewriteEngine On
    # Removes index.php from ExpressionEngine URLs
    RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /index.php/$1 [L]

    but I’d also like to force a slash on the end of all URLs and force them lowercase. Can any mod_rewrite guys give a hand?

    Much appreciated.

  • #2 / Jan 03, 2013 5:40pm

    transparentb

    24 posts

    Bump—I’m sure others are looking for the same thing, it’s fairly useful.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases