Created
January 22, 2014 19:36
-
-
Save justinph/8565809 to your computer and use it in GitHub Desktop.
mprnews mod_rewrite example
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 | |
# Allows our static assets to be versioned | |
# javascript (js) is versioned seperately because it has a more complicated build process | |
# also create a shortcut path /a/ for static assets because it uses less characters | |
RewriteRule ^js-built/([0-9]+)/(.*)$ /js-built/$2 [L] | |
RewriteRule ^a/([0-9]+)/(.*)$ /assets/$2 [L] | |
RewriteRule ^assets/([0-9]+)/(.*)$ /assets/$2 [L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment