SHOW:
|
|
- or go back to the newest paste.
1 | Options +Indexes | |
2 | RewriteEngine on | |
3 | ||
4 | <IfModule mod_deflate.c> | |
5 | AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript text/javascript font/opentype font/truetype font/eot image/png image/jpeg image/gif | |
6 | </IfModule> | |
7 | ||
8 | <IfModule mod_headers.c> | |
9 | <FilesMatch "\.(jpg|jpeg|png|gif|ico|js|css|otf|ttf)$"> | |
10 | Header set Cache-Control "max-age=604800, public" | |
11 | </FilesMatch> | |
12 | </IfModule> | |
13 | ||
14 | - | RewriteRule ^noticias/$ /index.php?view=pagination&ptype=noticias [L] |
14 | + | RewriteRule ^noticias/?$ /index.php?view=pagination&ptype=noticias [L] |
15 | RewriteRule ^noticias/([0-9]+)/?$ /index.php?view=pagination&ptype=noticias&page=$1 [L] | |
16 | RewriteRule ^noticias/([0-9]+)-([A-Za-z_0-9-]+)/?$ /index.php?view=pagination&ptype=noticias&id=$1 [L] | |
17 | ||
18 | ErrorDocument 403 /index.php?view=error&id=403 | |
19 | ErrorDocument 404 /index.php?view=error&id=404 | |
20 | ErrorDocument 500 /index.php?view=error&id=500 |