Skip to content

Instantly share code, notes, and snippets.

@nelyj
Created December 15, 2014 20:26
Show Gist options
  • Save nelyj/c9119e38950830812f73 to your computer and use it in GitHub Desktop.
Save nelyj/c9119e38950830812f73 to your computer and use it in GitHub Desktop.
.htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^blog/(.*) /home.php/#/$1
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) /index.php/#/$1
</IfModule>
# BEGIN GZIP
<ifmodule mod_deflate.c>
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
</ifmodule>
# END GZIP
# BEGIN WordPress
# END WordPress
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment