-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
39 lines (36 loc) · 1.6 KB
/
.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
29
30
31
32
33
34
35
36
37
38
39
RewriteEngine On
Options -Indexes
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript application/javascript
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType text/html "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access plus 1 month"
#Cambio de URL'S
RewriteRule ^registro$ index.php?page=register [L,NC]
RewriteRule ^peliculas$ index.php?page=films [L,NC]
RewriteRule ^peliculas_mejor_valoradas$ index.php?page=filmsRelated [L,NC]
RewriteRule ^compra$ index.php?page=shoppingCart [L,NC]
RewriteRule ^usuarios$ index.php?page=users [L,NC]
RewriteRule ^ajustes$ index.php?page=settings [L,NC]
RewriteRule ^admin$ index.php?page=admin [L,NC]
RewriteRule ^inicio$ index.php?page=inicio [L,NC]
RewriteRule ^sesion$ index.php?page=sesion [L,NC]
RewriteRule ^sesionActivada$ index.php?page=loginEmail [L,NC]
RewriteRule ^cambiarContra$ index.php?page=changePassword [L,NC]
RewriteRule ^desconectar$ index.php?page=logout [L,NC]
RewriteRule ^pelicula index.php [L,NC]
RewriteRule ^usuario index.php [L,NC]
RewriteRule ^buscar index.php [L,NC]
RewriteRule ^activar core/batchs/activateUser.php [L,NC]
RewriteRule ^pagina-error$ views/default/errorPage.html [L,NC]
#Errores
ErrorDocument 403 /pagina-error
ErrorDocument 404 /pagina-error