A collection of useful .htaccess snippets(github.com)

almost 5 years ago from David Barker

  • Jon MarshJon Marsh, almost 5 years ago (edited almost 5 years ago )

    Any recommendations for "clean url's"? I've been using the following snippet, yet when you type a URL in all caps per say (yourdomain.com/ABOUT), it displays an internal server error:

    <code> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ $1.html [NC,L] </code>

    (The above mentioned doesn't happen when I'm testing locally in MAMP, only when the site has been deployed)

    1 point