.htaccess - Forwarding to /index.php in IIS -


my client using iis webhosting service (annoyingly) doesn't recognize index.php default document. i've written simple index.html <meta> refreshes page index.php, there way i'd in .htaccess document in iis?

for example, can write web.config document following , drop in root, .htaccess?

rewriteengine on rewritebase / rewritecond %{request_uri} ^$ rewritecond %{http_host} ^domain.com$ rewriterule ^$ http://www.example.com/index.php [l,r=301] 

i don't have other access ftp.

try with

<configuration>    <system.webserver>     <defaultdocument>         <files>             <add value="index.php" />         </files>     </defaultdocument>    </system.webserver> </configuration> 

in web.config


Comments

Popular posts from this blog

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -