-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
43 lines (32 loc) · 1.48 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
# enable basic rewriting
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^en$ ?lan=en [NC,L]
RewriteRule ^ro$ ?lan=ro [NC,L]
RewriteRule ^hu$ ?lan=hu [NC,L]
#Sima oldalak
RewriteRule ^home$ index.php [NC,L]
RewriteRule ^home/([a-zA-Z]+)$ index.php?lan=$1 [NC,L]
RewriteRule ^about$ about.php [NC,L]
RewriteRule ^about/([a-zA-Z]+)$ about.php?lan=$1 [NC,L]
RewriteRule ^services$ services.php [NC,L]
RewriteRule ^services/([a-zA-Z]+)$ services.php?lan=$1 [NC,L]
RewriteRule ^projects$ projects.php [NC,L]
RewriteRule ^projects/([a-zA-Z]+)$ projects.php?lan=$1 [NC,L]
RewriteRule ^project$ projects.php [NC,L]
RewriteRule ^project/([a-zA-Z0-9-_]+)$ project_details.php?link=$1 [NC,L]
RewriteRule ^project/([a-zA-Z0-9-_]+)/([a-zA-Z]+)$ project_details.php?link=$1&lan=$2 [NC,L]
RewriteRule ^contact$ contact.php [NC,L]
RewriteRule ^contact/([a-zA-Z]+)$ contact.php?lan=$1 [NC,L]
RewriteRule ^contact_confirmation$ confirmation.php [NC,L]
RewriteRule ^contact_confirmation/([a-zA-Z]+)$ confirmation.php?lan=$1 [NC,L]
RewriteRule ^fail$ fail.php [NC,L]
RewriteRule ^fail/([a-zA-Z]+)$ fail.php?lan=$1 [NC,L]
RewriteRule ^error$ error.php [NC,L]
RewriteRule ^error/([a-zA-Z]+)$ error.php?lan=$1 [NC,L]
RewriteRule ^([a-zA-Z0-9-_]+)$ general.php?link=$1 [NC,L]
RewriteRule ^([a-zA-Z0-9-_]+)/([a-zA-Z]+)$ general.php?link=$1&lan=$2 [NC,L]