Skip to content

Instantly share code, notes, and snippets.

@Dezzign
Forked from theperrygroup/.htaccess
Created June 1, 2019 09:27
Show Gist options
  • Save Dezzign/3bfd96de65ffdc9acda20764f1854163 to your computer and use it in GitHub Desktop.
Save Dezzign/3bfd96de65ffdc9acda20764f1854163 to your computer and use it in GitHub Desktop.

Revisions

  1. @jp26jp jp26jp created this gist Apr 11, 2016.
    5 changes: 5 additions & 0 deletions .htaccess
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    # This code must be placed in the .htaccess
    # file that is located in the root directory
    RewriteEngine on
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^([^.]+?)/?$ /$1.html [L,R=301]