File tree 1 file changed +41
-1
lines changed
1 file changed +41
-1
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,15 @@ DocumentRoot /home/user/projects/zend/public
17
17
SetEnv APPLICATION_ENV development
18
18
</VirtualHost>
19
19
20
+ Apache .htaccess
21
+ ================
22
+
23
+ RewriteEngine On
24
+ RewriteCond %{REQUEST_FILENAME} -s [OR]
25
+ RewriteCond %{REQUEST_FILENAME} -l [OR]
26
+ RewriteCond %{REQUEST_FILENAME} -d
27
+ RewriteRule ^.*$ - [NC,L]
28
+ RewriteRule ^.*$ index.php [NC,L]
20
29
21
30
For Built-in cli php server
22
31
===========================
@@ -28,4 +37,35 @@ if (preg_match('/\.(?:png|jpg|jpeg|gif|js|css)$/', $_SERVER["REQUEST_URI"])) {
28
37
return false;
29
38
} else {
30
39
include __DIR__ . '/index.php';
31
- }
40
+ }
41
+
42
+ For Windows Serve like Azure
43
+ ==============================
44
+
45
+ <?xml version="1.0" encoding="UTF-8"?>
46
+ <configuration>
47
+ <system.webServer>
48
+ <rewrite>
49
+ <rules>
50
+ <rule name="Imported Rule 1" stopProcessing="true">
51
+ <match url="^.*$" />
52
+ <conditions logicalGrouping="MatchAny">
53
+ <add input="{REQUEST_FILENAME}"
54
+ matchType="IsFile" pattern=""
55
+ ignoreCase="false" />
56
+
57
+ <add input="{REQUEST_FILENAME}"
58
+ matchType="IsDirectory"
59
+ pattern=""
60
+ ignoreCase="false" />
61
+ </conditions>
62
+ <action type="None" />
63
+ </rule>
64
+ <rule name="Imported Rule 2" stopProcessing="true">
65
+ <match url="^.*$" />
66
+ <action type="Rewrite" url="/index.php" />
67
+ </rule>
68
+ </rules>
69
+ </rewrite>
70
+ </system.webServer>
71
+ </configuration>
You can’t perform that action at this time.
0 commit comments