Skip to content

Instantly share code, notes, and snippets.

@nickcharlton
Created July 16, 2013 14:45
Show Gist options
  • Save nickcharlton/6009387 to your computer and use it in GitHub Desktop.
Save nickcharlton/6009387 to your computer and use it in GitHub Desktop.
This is from where I moved from /post/post-name/ to /posts/post-name.html. And the same for /projects/ to /projects.html and so on.
<Directory "/var/www/site">
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^post/(.*) http://nickcharlton.net/posts/$1.html [NC]
RewriteRule ^projects$ http://nickcharlton.net/projects.html [NC]
RewriteRule ^about$ http://nickcharlton.net/about.html [NC]
RewriteRule ^archives$ http://nickcharlton.net/archives.html [NC]
</Directory>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment