Created
July 27, 2017 16:17
-
-
Save mortegac/d8f7c50304d8ce9c596644d6403ab431 to your computer and use it in GitHub Desktop.
Archivo de configuración de Apache que permite url amigables(sin extension) y cachear los assets(images, Css, Js)
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
//Reescribe la URL para que sea Amigable | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^([^\.]+)$ $1.html [NC,L] | |
//Cachear assets | |
ExpiresActive On | |
ExpiresByType assets/images/jpg M2592000 | |
ExpiresByType assets/css/css M2592000 | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment