Skip to content

Instantly share code, notes, and snippets.

@mtigdemir
Created February 15, 2018 11:19
Show Gist options
  • Save mtigdemir/4e62b477caef0dff3006317892db4fec to your computer and use it in GitHub Desktop.
Save mtigdemir/4e62b477caef0dff3006317892db4fec to your computer and use it in GitHub Desktop.
Redirect All .html links to non html links with 301
## Redirect All .html links to non html links with 301
RewriteCond %{THE_REQUEST} \.html
RewriteRule ^(.*)\.html$ /$1 [R=301,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment