22 lines
626 B
ApacheConf
22 lines
626 B
ApacheConf
RewriteEngine On
|
|
|
|
# redirigir y eliminar php (Yay! Funciona c:)
|
|
RewriteCond %{THE_REQUEST} /([^.]+)\.php [NC]
|
|
RewriteRule ^ /%1 [NC,L,R=301]
|
|
|
|
RewriteCond %{THE_REQUEST} /([^.]+)\.html [NC]
|
|
RewriteRule ^ /%1 [NC,L,R=301]
|
|
|
|
RewriteCond %{REQUEST_FILENAME}.php -f
|
|
RewriteRule ^ %{REQUEST_URI}.php [NC,L]
|
|
|
|
## Desabilitar cache de Apache
|
|
<FilesMatch "\.(html|htm|js|css)$">
|
|
FileETag None
|
|
<IfModule mod_headers.c>
|
|
Header unset ETag
|
|
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
|
|
Header set Pragma "no-cache"
|
|
Header set Expires "Wed, 12 Jan 1980 05:00:00 GMT"
|
|
</IfModule>
|
|
</FilesMatch> |