Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 60 lines (42 sloc) 1.472 kb
ab5fc24 @joelconty agregando archivos al sistema. comenzamos....
joelconty authored
1 # Protect files and directories from prying eyes.
2 <FilesMatch "sql$">
3 Order allow,deny
4 </FilesMatch>
5
6 # Don't show directory listings for URLs which map to a directory.
7 Options -Indexes
8
9 # Follow symbolic links in this directory.
10 Options +FollowSymLinks
11
12 # Customized error messages.
13 ErrorDocument 404 /index.php?controller=404
14
15 # Set the default handler.
16 DirectoryIndex index.php
17
18
19 <IfModule mod_php5.c>
20 php_value magic_quotes_gpc 0
21 php_value register_globals 0
22 php_value session.auto_start 0
23 php_value mbstring.http_input pass
24 php_value mbstring.http_output pass
25 php_value mbstring.encoding_translation 0
26 </IfModule>
27
28
29 <IfModule mod_rewrite.c>
30 RewriteEngine On
31
32 RewriteBase /
33
34 RewriteCond %{REQUEST_FILENAME} !-f
35 RewriteRule ^\/?avatars(.*\.(png|gif|jpg|jpeg|css|js|ico))$ /images/anonimo.gif [L]
36
37
38 RewriteCond %{REQUEST_FILENAME} -f
39 RewriteRule ^\/?(.*\.(png|gif|jpg|jpeg|css|js|ico|swf))$ $1 [L]
40
41
42
43 RewriteCond %{REQUEST_FILENAME} !-f
44 RewriteCond %{REQUEST_FILENAME} !-d
45 RewriteRule ^\/?([^\/]+)\/?([^\/]+)?.*$ /index.php?controller=$1&method=$2 [L]
46
47
48 #protect some directories
49 RewriteRule ^sql.* / [L]
50 RewriteRule ^templates.* / [L]
51 RewriteRule ^functions.* / [L]
52 RewriteRule ^exceptions.* / [L]
53 RewriteRule ^components.* / [L]
54 RewriteRule ^photoshop.* / [L]
55 RewriteRule ^libraries.* / [L]
56 RewriteRule ^uberdebug.* / [L]
57 RewriteRule ^var.* / [L]
58 RewriteRule ^tmp.* / [L]
59 </IfModule>
Something went wrong with that request. Please try again.