Rules

You can test an RUI here:





General translation rules

$phpurims->cfg["uri"]["tr_preg"] and $phpurims->cfg["uri"]["tr_repl"]
nb string to match How to transform it
0 !\.htm$! .html
1 !\.xaml$! .xul
2 !/\.phpurims-ie7/! /../opt/ie7/

Translation rules

$phpurims->cfg["uri"]["translate"]
nb filename to match How to transform it Level match type of the file mime type
0 !^(.*)\.([a-z]{2})\.(png)$! $1.$2.$3 !! image/x-png
1 !^(.*)\.([a-z]{2})\.(jpg)$! $1.$2.$3 !! image/x-jpeg
2 !^(.*)\.([a-z]{2})\.(jpeg)$! $1.$2.$3 !! image/x-jpeg
3 !^(.*)\.([a-z]{2})\.(html)$! $1.$2.$3 !! php html text/html
4 !^(.*)\.([a-z]{2})\.(htm)$! $1.$2.$3 !! php html text/html
5 !^(.*)\.([a-z]{2})\.(css)$! $1.$2.$3 !! php text/css
6 !^(.*)\.([a-z]{2})\.(txt)$! $1.$2.$3 !! php text/plain
7 !^(.*)\.([a-z]{2})\.(js)$! $1.$2.$3 !! php application/x-javascript
8 !^(.*)\.([a-z]{2})\.(\w+)$! $1.$2.$3 !! php html text/html
9 !^(.*)\.([a-z]{2})\.(png)$! $1.$3 !! image/x-png
10 !^(.*)\.([a-z]{2})\.(jpg)$! $1.$3 !! image/x-jpeg
11 !^(.*)\.([a-z]{2})\.(jpeg)$! $1.$3 !! image/x-jpeg
12 !^(.*)\.([a-z]{2})\.(html)$! $1.$3 !! php html text/html
13 !^(.*)\.([a-z]{2})\.(htm)$! $1.$3 !! php html text/html
14 !^(.*)\.([a-z]{2})\.(css)$! $1.$3 !! php text/css
15 !^(.*)\.([a-z]{2})\.(txt)$! $1.$3 !! php text/plain
16 !^(.*)\.([a-z]{2})\.(js)$! $1.$3 !! php application/x-javascript
17 !^(.*)\.([a-z]{2})\.(\w+)$! $1.$3 !! php html text/html
18 !^(.*)\.([a-z]{2})\.(png)$! $1.$2 !! image/x-png
19 !^(.*)\.([a-z]{2})\.(jpg)$! $1.$2 !! image/x-jpeg
20 !^(.*)\.([a-z]{2})\.(jpeg)$! $1.$2 !! image/x-jpeg
21 !^(.*)\.([a-z]{2})\.(html)$! $1.$2 !! php html text/html
22 !^(.*)\.([a-z]{2})\.(htm)$! $1.$2 !! php html text/html
23 !^(.*)\.([a-z]{2})\.(css)$! $1.$2 !! php text/css
24 !^(.*)\.([a-z]{2})\.(txt)$! $1.$2 !! php text/plain
25 !^(.*)\.([a-z]{2})\.(js)$! $1.$2 !! php application/x-javascript
26 !^(.*)\.([a-z]{2})\.(\w+)$! $1.$2 !! php html text/html
27 !^(.*)\.([a-z]{2})\.(png)$! $1 !! image/x-png
28 !^(.*)\.([a-z]{2})\.(jpg)$! $1 !! image/x-jpeg
29 !^(.*)\.([a-z]{2})\.(jpeg)$! $1 !! image/x-jpeg
30 !^(.*)\.([a-z]{2})\.(html)$! $1 !! php html text/html
31 !^(.*)\.([a-z]{2})\.(htm)$! $1 !! php html text/html
32 !^(.*)\.([a-z]{2})\.(css)$! $1 !! php text/css
33 !^(.*)\.([a-z]{2})\.(txt)$! $1 !! php text/plain
34 !^(.*)\.([a-z]{2})\.(js)$! $1 !! php application/x-javascript
35 !^(.*)\.([a-z]{2})\.(\w+)$! $1 !! php html text/html
36 !^(.*)\.(png)$! $1.en.$2 !! image/x-png
37 !^(.*)\.(png)$! $1.en.$2 !! image/x-png
38 !^(.*)\.(jpg)$! $1.en.$2 !! image/x-jpeg
39 !^(.*)\.(jpg)$! $1.en.$2 !! image/x-jpeg
40 !^(.*)\.(jpeg)$! $1.en.$2 !! image/x-jpeg
41 !^(.*)\.(jpeg)$! $1.en.$2 !! image/x-jpeg
42 !^(.*)\.(html)$! $1.en.$2 !! php html text/html
43 !^(.*)\.(html)$! $1.en.$2 !! php html text/html
44 !^(.*)\.(htm)$! $1.en.$2 !! php html text/html
45 !^(.*)\.(htm)$! $1.en.$2 !! php html text/html
46 !^(.*)\.(css)$! $1.en.$2 !! php text/css
47 !^(.*)\.(css)$! $1.en.$2 !! php text/css
48 !^(.*)\.(txt)$! $1.en.$2 !! php text/plain
49 !^(.*)\.(txt)$! $1.en.$2 !! php text/plain
50 !^(.*)\.(js)$! $1.en.$2 !! php application/x-javascript
51 !^(.*)\.(js)$! $1.en.$2 !! php application/x-javascript
52 !^(.*)\.(\w+)$! $1.en.$2 !! php text/html
53 !^(.*)\.(\w+)$! $1.en.$2 !! php text/html
54 !^(.*)\.(png)$! $1.$2 !! image/x-png
55 !^(.*)\.(jpg)$! $1.$2 !! image/x-jpeg
56 !^(.*)\.(jpeg)$! $1.$2 !! image/x-jpeg
57 !^(.*)\.(html)$! $1.$2 !! php html text/html
58 !^(.*)\.(htm)$! $1.$2 !! php html text/html
59 !^(.*)\.(css)$! $1.$2 !! php text/css
60 !^(.*)\.(txt)$! $1.$2 !! php text/plain
61 !^(.*)\.(js)$! $1.$2 !! php application/x-javascript
62 !^(.*)\.(\w+)$! $1.$2 !! php text/html
63 !^(.*)\.(png)$! $1.en !! image/x-png
64 !^(.*)\.(png)$! $1.en !! image/x-png
65 !^(.*)\.(jpg)$! $1.en !! image/x-jpeg
66 !^(.*)\.(jpg)$! $1.en !! image/x-jpeg
67 !^(.*)\.(jpeg)$! $1.en !! image/x-jpeg
68 !^(.*)\.(jpeg)$! $1.en !! image/x-jpeg
69 !^(.*)\.(html)$! $1.en !! php html text/html
70 !^(.*)\.(html)$! $1.en !! php html text/html
71 !^(.*)\.(htm)$! $1.en !! php html text/html
72 !^(.*)\.(htm)$! $1.en !! php html text/html
73 !^(.*)\.(css)$! $1.en !! php text/css
74 !^(.*)\.(css)$! $1.en !! php text/css
75 !^(.*)\.(txt)$! $1.en !! php text/plain
76 !^(.*)\.(txt)$! $1.en !! php text/plain
77 !^(.*)\.(js)$! $1.en !! php application/x-javascript
78 !^(.*)\.(js)$! $1.en !! php application/x-javascript
79 !^(.*)\.(\w+)$! $1.en !! php html text/html
80 !^(.*)\.(\w+)$! $1.en !! php html text/html
81 !^(.*)\.(png)$! $1 !! image/x-png
82 !^(.*)\.(jpg)$! $1 !! image/x-jpeg
83 !^(.*)\.(jpeg)$! $1 !! image/x-jpeg
84 !^(.*)\.(html)$! $1 !! php html text/html
85 !^(.*)\.(htm)$! $1 !! php html text/html
86 !^(.*)\.(css)$! $1 !! php text/css
87 !^(.*)\.(txt)$! $1 !! php text/plain
88 !^(.*)\.(js)$! $1 !! php application/x-javascript
89 !^(.*)\.(\w+)$! $1 !! php html text/html
90 !^(.*)\.([a-z]{2})$! $1.$2 !! image/x-png
91 !^(.*)\.([a-z]{2})$! $1.$2 !! image/x-jpeg
92 !^(.*)\.([a-z]{2})$! $1.$2 !! image/x-jpeg
93 !^(.*)\.([a-z]{2})$! $1.$2 !! php html text/html
94 !^(.*)\.([a-z]{2})$! $1.$2 !! php html text/html
95 !^(.*)\.([a-z]{2})$! $1.$2 !! php text/css
96 !^(.*)\.([a-z]{2})$! $1.$2 !! php text/plain
97 !^(.*)\.([a-z]{2})$! $1.$2 !! php application/x-javascript
98 !^(.*)\.([a-z]{2})$! $1 !! php html text/html
99 !^(.*)\.([a-z]{2})$! $1.$2.png !! image/x-png
100 !^(.*)\.([a-z]{2})$! $1.$2.jpg !! image/x-jpeg
101 !^(.*)\.([a-z]{2})$! $1.$2.jpeg !! image/x-jpeg
102 !^(.*)\.([a-z]{2})$! $1.$2.html !! php html text/html
103 !^(.*)\.([a-z]{2})$! $1.$2.htm !! php html text/html
104 !^(.*)\.([a-z]{2})$! $1.$2.css !! php text/css
105 !^(.*)\.([a-z]{2})$! $1.$2.txt !! php text/plain
106 !^(.*)\.([a-z]{2})$! $1.$2.js !! php application/x-javascript
107 !^(.*)\.([a-z]{2})$! $1.png !! image/x-png
108 !^(.*)\.([a-z]{2})$! $1.jpg !! image/x-jpeg
109 !^(.*)\.([a-z]{2})$! $1.jpeg !! image/x-jpeg
110 !^(.*)\.([a-z]{2})$! $1.html !! php html text/html
111 !^(.*)\.([a-z]{2})$! $1.htm !! php html text/html
112 !^(.*)\.([a-z]{2})$! $1.css !! php text/css
113 !^(.*)\.([a-z]{2})$! $1.txt !! php text/plain
114 !^(.*)\.([a-z]{2})$! $1.js !! php application/x-javascript
115 !^(.*)$! $1.en !! php html text/html
116 !^(.*)$! $1.en !! php html text/html
117 !^(.*)$! $1 !! php html text/html
118 !^(.*)$! $1.en.png !! image/x-png
119 !^(.*)$! $1.en.png !! image/x-png
120 !^(.*)$! $1.en.jpg !! image/x-jpeg
121 !^(.*)$! $1.en.jpg !! image/x-jpeg
122 !^(.*)$! $1.en.jpeg !! image/x-jpeg
123 !^(.*)$! $1.en.jpeg !! image/x-jpeg
124 !^(.*)$! $1.en.html !! php html text/html
125 !^(.*)$! $1.en.html !! php html text/html
126 !^(.*)$! $1.en.htm !! php html text/html
127 !^(.*)$! $1.en.htm !! php html text/html
128 !^(.*)$! $1.en.css !! php text/css
129 !^(.*)$! $1.en.css !! php text/css
130 !^(.*)$! $1.en.txt !! php text/plain
131 !^(.*)$! $1.en.txt !! php text/plain
132 !^(.*)$! $1.en.js !! php application/x-javascript
133 !^(.*)$! $1.en.js !! php application/x-javascript
134 !^(.*)$! $1.png !! image/x-png
135 !^(.*)$! $1.jpg !! image/x-jpeg
136 !^(.*)$! $1.jpeg !! image/x-jpeg
137 !^(.*)$! $1.html !! php html text/html
138 !^(.*)$! $1.htm !! php html text/html
139 !^(.*)$! $1.css !! php text/css
140 !^(.*)$! $1.txt !! php text/plain
141 !^(.*)$! $1.js !! php application/x-javascript
142 !(.*)! !! html text/html

Index rules

$phpurims->cfg["uri"]["index"]
nb filename to match type of the file mime type
0 !index.png! image/x-png
1 !index.en.png! image/x-png
2 !index.en.png! image/x-png
3 !index.jpg! image/x-jpeg
4 !index.en.jpg! image/x-jpeg
5 !index.en.jpg! image/x-jpeg
6 !index.jpeg! image/x-jpeg
7 !index.en.jpeg! image/x-jpeg
8 !index.en.jpeg! image/x-jpeg
9 !index.html! php html text/html
10 !index.en.html! php html text/html
11 !index.en.html! php html text/html
12 !index.htm! php html text/html
13 !index.en.htm! php html text/html
14 !index.en.htm! php html text/html
15 !index.css! php text/css
16 !index.en.css! php text/css
17 !index.en.css! php text/css
18 !index.txt! php text/plain
19 !index.en.txt! php text/plain
20 !index.en.txt! php text/plain
21 !index.js! php application/x-javascript
22 !index.en.js! php application/x-javascript
23 !index.en.js! php application/x-javascript
24 !index! php html text/html