-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
73 lines (61 loc) · 3.01 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
RewriteEngine on
#AuthUserFile /home/pagina/www/.htpasswd
#AuthGroupFile /dev/null
#AuthName “Password Protected Area”
#AuthType Basic
#AddDefaultCharset utf-8
<limit GET POST>
</limit>
<LimitExcept POST GET>
Order deny,allow
Deny from all
</LimitExcept>
#english
Rewriterule ^(inicio)$ /index.php
Rewriterule ^(nosotros)$ /us.php
Rewriterule ^(nosotros)/([0-9]*)/([A-Za-z0-9_\-]*)$ /us.php?cont_code=$2
Rewriterule ^(nosotros)/(nuestro_personal)$ /personal.php
Rewriterule ^(nosotros)/(informacion_social)$ /social_information.php
Rewriterule ^(servicios)$ /services.php
Rewriterule ^(servicios)/([0-9]*)/([A-Za-z0-9_\-]*)$ /services.php?sertype_code=$2&sertype_name=$3
Rewriterule ^([0-9]*)/([0-9]*)/(servicios)/([0-9]*)/([A-Za-z0-9_\-]*)$ /services.php?sertype_code=$4&sertype_name=$5&init=$1&amount=$2
Rewriterule ^(servicio)/([0-9]*)/([A-Za-z0-9_\-]*)$ /services.php?serv_code=$2&serv_name=$3
Rewriterule ^(contactenos)$ /contact_us.php
Rewriterule ^(galerias)$ /galleries.php
Rewriterule ^([0-9]*)/([0-9]*)/(galerias)$ /galleries.php?init=$1&amount=$2
Rewriterule ^(galeria)/([0-9]*)/([A-Za-z0-9_\-]*)$ /gallery.php?gall_code=$2
Rewriterule ^(videos)$ /videos.php
Rewriterule ^([0-9]*)/([0-9]*)/(videos)$ /videos.php?init=$1&amount=$2
Rewriterule ^([0-9]*)/([0-9]*)/(videos)/([0-9]*)/([A-Za-z0-9_\-]*)$ /videos.php?init=$1&amount=$2&vid_code=$4
Rewriterule ^(faq)$ /faq.php
Rewriterule ^(es)$ /loadLanguage.php?lang=es
#spanish
Rewriterule ^(home)$ /index.php
Rewriterule ^(us)$ /us.php
Rewriterule ^(us)/([0-9]*)/([A-Za-z0-9_\-]*)$ /us.php?cont_code=$2
Rewriterule ^(us)/(our_personal)$ /personal.php
Rewriterule ^(nosotros)/(social_information)$ /social_information.php
Rewriterule ^(services)$ /services.php
Rewriterule ^(services)/([0-9]*)/([A-Za-z0-9_\-]*)$ /services.php?sertype_code=$2&sertype_name=$3
Rewriterule ^([0-9]*)/([0-9]*)/(services)/([0-9]*)/([A-Za-z0-9_\-]*)$ /services.php?sertype_code=$4&sertype_name=$5&init=$1&amount=$2
Rewriterule ^(service)/([0-9]*)/([A-Za-z0-9_\-]*)$ /services.php?serv_code=$2&serv_name=$3
Rewriterule ^(contact_us)$ /contact_us.php
Rewriterule ^(galleries)$ /galleries.php
Rewriterule ^([0-9]*)/([0-9]*)/(galleries)$ /galleries.php?init=$1&amount=$2
Rewriterule ^(gallery)/([0-9]*)/([A-Za-z0-9_\-]*)$ /gallery.php?gall_code=$2
Rewriterule ^(videos)$ /videos.php
Rewriterule ^([0-9]*)/([0-9]*)/(videos)$ /videos.php?init=$1&amount=$2
Rewriterule ^([0-9]*)/([0-9]*)/(videos)/([0-9]*)/([A-Za-z0-9_\-]*)$ /videos.php?init=$1&amount=$2&vid_code=$4
Rewriterule ^(faq)$ /faq.php
Rewriterule ^(en)$ /loadLanguage.php?lang=en
ErrorDocument 400 /errorDocument.php
ErrorDocument 401 /errorDocument.php
ErrorDocument 403 /errorDocument.php
ErrorDocument 404 /errorDocument.php
ErrorDocument 500 /errorDocument.php
Options +FollowSymlinks
#Protect against hotlinking
#RewriteEngine On
#RewriteCond %{HTTP_REFERER} !^$
#RewriteCond %{HTTP_REFERER} !^http://(www.)?luisvelandia.com/ [nc]
#RewriteRule .*.(gif|jpg|png)$ http://luisvelandia.com/images/ladron.jpg[nc]