Skip to content

Commit 3b1bbe5

Browse files
authored
Update README.txt
Para probar la aplicación en un servidor
1 parent d1686b3 commit 3b1bbe5

File tree

1 file changed

+41
-1
lines changed

1 file changed

+41
-1
lines changed

docs/README.txt

+41-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@ DocumentRoot /home/user/projects/zend/public
1717
SetEnv APPLICATION_ENV development
1818
</VirtualHost>
1919

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]
2029

2130
For Built-in cli php server
2231
===========================
@@ -28,4 +37,35 @@ if (preg_match('/\.(?:png|jpg|jpeg|gif|js|css)$/', $_SERVER["REQUEST_URI"])) {
2837
return false;
2938
} else {
3039
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>

0 commit comments

Comments
 (0)