Skip to content

Instantly share code, notes, and snippets.

@msporleder
Created January 7, 2016 19:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save msporleder/1bf264c3e5e8e3939586 to your computer and use it in GitHub Desktop.
Save msporleder/1bf264c3e5e8e3939586 to your computer and use it in GitHub Desktop.
Alias /foo /home/mspo/smallblog/public
RewriteEngine On
<Directory /home/mspo/smallblog/public>
Require all granted
Options Indexes FollowSymLinks
RewriteCond %{THE_REQUEST} "^[A-Za-z]+ /foo/(.+)(\?| )"
RewriteCond /home/mspo/smallblog/public/%1.html -f
RewriteRule (.+) %1.html [PT,L]
</Directory>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment