Partner and Community Forums
Pls Help!!How to implement .htaccess MIME Type in IIS
Last post Mar 21, 2013 05:01 PM by Mindkeytech
Mar 14, 2013 06:45 AM|LINK
I have a .htaccess file with following code
The above code was hosted on Apache Web Server and was working fine. And Now we have hosted the application in windows 2008 Server with IIS7. But we are unable to define the above settings in IIS. new-arrival,best-seller,bargain-buys.. are name of files.
They are not file extension.
Can any one help me to define the above MIME type in IIS. Thanks in advance to all.
Mar 14, 2013 04:28 PM|LINK
Have you installed PHP on your server? Also, what are the file extensions associated with the files?
Mar 14, 2013 05:53 PM|LINK
Mar 14, 2013 06:39 PM|LINK
You can add this to the MIME types. Make sure you enter a "." in the extension box, then specifiy application/x-httpd-php in the MIME Type box. That should provide the functionality you are trying to mimic.
Mar 16, 2013 02:28 PM|LINK
I have tried but it did not worked. My URL is like this:
where books is a folder & book is a php file. I want that IIS should treat book as a file (without any extension) and run it as book.php
If I change the URL a bit and add .php after the book it works perfectly fine.
I just want to know how can I make IIS to handle book( file without extension) with php.
Mar 21, 2013 02:53 PM|LINK
IIS is by default interpreting book in that URL as a directory. I am not aware of a way to change that functionality but will poke around and see what I am able to find.
Mar 21, 2013 05:01 PM|LINK