-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
executable file
·29 lines (27 loc) · 1009 Bytes
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
Options +FollowSymLinks
<Files .htaccess>
Order allow,deny
Deny from all
</Files>
# guardar cache de los siguientes tipos de archivos por 432000 seg.(5dias)
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/gif A432000
ExpiresByType image/jpg A432000
ExpiresByType image/jpeg A432000
ExpiresByType image/png A432000
ExpiresByType image/ico A432000
ExpiresByType image/bmp A432000
ExpiresByType text/css A432000
ExpiresByType text/javascript A432000
ExpiresByType application/javascript A432000
ExpiresByType application/x-javascript A432000
</ifmodule>
# costo pero salio. toda peticion redirigida siempre a /index.php
RewriteEngine On
RewriteCond ^/index.php(.*)$ !on [NC]
RewriteCond %{REQUEST_URI} !^/index.php/
RewriteRule ^(.*)$ http://172.20.16.10/l/sys/index.php/$1 [L]
# RewriteRule ^index.php/(.*)$ http://172.20.16.10/l/mios/mio/index.php/$1 [R=301,L]
# RewriteRule ^(.*)$ http://172.20.16.10/l/mios/mio/index.php/$1 [R=301,L]
# para que este archivo no pueda ser leido directamente.