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.$2 !! image/x-png
37 !^(.*)\.(jpg)$! $1.$2 !! image/x-jpeg
38 !^(.*)\.(jpeg)$! $1.$2 !! image/x-jpeg
39 !^(.*)\.(html)$! $1.$2 !! php html text/html
40 !^(.*)\.(htm)$! $1.$2 !! php html text/html
41 !^(.*)\.(css)$! $1.$2 !! php text/css
42 !^(.*)\.(txt)$! $1.$2 !! php text/plain
43 !^(.*)\.(js)$! $1.$2 !! php application/x-javascript
44 !^(.*)\.(\w+)$! $1.$2 !! php text/html
45 !^(.*)\.(png)$! $1 !! image/x-png
46 !^(.*)\.(jpg)$! $1 !! image/x-jpeg
47 !^(.*)\.(jpeg)$! $1 !! image/x-jpeg
48 !^(.*)\.(html)$! $1 !! php html text/html
49 !^(.*)\.(htm)$! $1 !! php html text/html
50 !^(.*)\.(css)$! $1 !! php text/css
51 !^(.*)\.(txt)$! $1 !! php text/plain
52 !^(.*)\.(js)$! $1 !! php application/x-javascript
53 !^(.*)\.(\w+)$! $1 !! php html text/html
54 !^(.*)\.([a-z]{2})$! $1.$2 !! image/x-png
55 !^(.*)\.([a-z]{2})$! $1.$2 !! image/x-jpeg
56 !^(.*)\.([a-z]{2})$! $1.$2 !! image/x-jpeg
57 !^(.*)\.([a-z]{2})$! $1.$2 !! php html text/html
58 !^(.*)\.([a-z]{2})$! $1.$2 !! php html text/html
59 !^(.*)\.([a-z]{2})$! $1.$2 !! php text/css
60 !^(.*)\.([a-z]{2})$! $1.$2 !! php text/plain
61 !^(.*)\.([a-z]{2})$! $1.$2 !! php application/x-javascript
62 !^(.*)\.([a-z]{2})$! $1 !! php html text/html
63 !^(.*)\.([a-z]{2})$! $1.$2.png !! image/x-png
64 !^(.*)\.([a-z]{2})$! $1.$2.jpg !! image/x-jpeg
65 !^(.*)\.([a-z]{2})$! $1.$2.jpeg !! image/x-jpeg
66 !^(.*)\.([a-z]{2})$! $1.$2.html !! php html text/html
67 !^(.*)\.([a-z]{2})$! $1.$2.htm !! php html text/html
68 !^(.*)\.([a-z]{2})$! $1.$2.css !! php text/css
69 !^(.*)\.([a-z]{2})$! $1.$2.txt !! php text/plain
70 !^(.*)\.([a-z]{2})$! $1.$2.js !! php application/x-javascript
71 !^(.*)\.([a-z]{2})$! $1.png !! image/x-png
72 !^(.*)\.([a-z]{2})$! $1.jpg !! image/x-jpeg
73 !^(.*)\.([a-z]{2})$! $1.jpeg !! image/x-jpeg
74 !^(.*)\.([a-z]{2})$! $1.html !! php html text/html
75 !^(.*)\.([a-z]{2})$! $1.htm !! php html text/html
76 !^(.*)\.([a-z]{2})$! $1.css !! php text/css
77 !^(.*)\.([a-z]{2})$! $1.txt !! php text/plain
78 !^(.*)\.([a-z]{2})$! $1.js !! php application/x-javascript
79 !^(.*)$! $1 !! php html text/html
80 !^(.*)$! $1.png !! image/x-png
81 !^(.*)$! $1.jpg !! image/x-jpeg
82 !^(.*)$! $1.jpeg !! image/x-jpeg
83 !^(.*)$! $1.html !! php html text/html
84 !^(.*)$! $1.htm !! php html text/html
85 !^(.*)$! $1.css !! php text/css
86 !^(.*)$! $1.txt !! php text/plain
87 !^(.*)$! $1.js !! php application/x-javascript
88 !(.*)! !! 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.jpg! image/x-jpeg
2 !index.jpeg! image/x-jpeg
3 !index.html! php html text/html
4 !index.htm! php html text/html
5 !index.css! php text/css
6 !index.txt! php text/plain
7 !index.js! php application/x-javascript
8 !index! php html text/html