Autor | Zpráva | ||
---|---|---|---|
t4nn3r Profil |
#1 · Zasláno: 10. 2. 2010, 11:02:15
Ahoj mám menší problém, dělám kamarádovi web a on aktivně zaplatil hosting s IIS na W$. S tím jsem nikdy nedělal. Mohl by mi někdo prosím přeložit .htaccess pro IIS ?
Děkuju SetEnv APPLICATION_ENV development RewriteEngine On RewriteRule ^public - [L] RewriteRule ^images - [L] RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^.*$ index.php [NC,L] RewriteCond %{REQUEST_URI} !^/public/.*$ RewriteRule ^(.*)$ public/$1 |
||
martindeveloper Profil |
#2 · Zasláno: 10. 2. 2010, 12:22:14 · Upravil/a: martindeveloper
<rewrite> <rules> <rule name="Imported Rule 1" stopProcessing="true"> <match url="^public" ignoreCase="false" /> <action type="None" /> </rule> <rule name="Imported Rule 2" stopProcessing="true"> <match url="^images" ignoreCase="false" /> <action type="None" /> </rule> <rule name="Imported Rule 3" stopProcessing="true"> <match url="^.*$" /> <conditions logicalGrouping="MatchAll"> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" /> </conditions> <action type="None" /> </rule> <rule name="Imported Rule 4" stopProcessing="true"> <match url="^.*$" /> <action type="Rewrite" url="index.php" /> </rule> <rule name="Imported Rule 5"> <match url="^(.*)$" ignoreCase="false" /> <conditions logicalGrouping="MatchAll"> <add input="{URL}" pattern="^/public/.*$" ignoreCase="false" negate="true" /> </conditions> <action type="Rewrite" url="public/{R:1}" /> </rule> </rules> </rewrite> |
||
t4nn3r Profil |
#3 · Zasláno: 11. 2. 2010, 14:30:10
jj diky moc
|
||
Časová prodleva: 14 let
|
0