-
-
Save icco/260847 to your computer and use it in GitHub Desktop.
pseudoweb.net .htaccess
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine On | |
# Map / to /_site. | |
RewriteRule ^$ /_site/ [L] | |
# Map /x to /_site/x | |
RewriteCond %{REQUEST_URI} !^/_site/ | |
RewriteRule ^(.*)$ /_site/$1 | |
# Add trailing slash to directories without them so DirectoryIndex works. | |
# This does not expose the internal URL. | |
RewriteCond %{REQUEST_FILENAME} -d | |
RewriteCond %{REQUEST_FILENAME} !/$ | |
RewriteRule ^(.*)$ $1/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment