Last active
November 5, 2015 14:57
-
-
Save dchatry/9e0ef631424d0e306d62 to your computer and use it in GitHub Desktop.
[Drupal] Clean URL for files
This file contains hidden or 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
| # Clean URL for files in Drupal | |
| # | |
| # Replace : http://www.site.com/sites/default/files/myfile.txt | |
| # by : http://www.site.com/files/myfile.txt | |
| # Be careful to put this rule before any other blocking rule. | |
| RewriteRule ^files/(.*)$ /sites/default/files/$1 [L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment